Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3693556
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:23:28+00:00 2026-05-19T04:23:28+00:00

I have a Tomcat6 server on a Linux server. The structure of the webapps

  • 0

I have a Tomcat6 server on a Linux server. The structure of the webapps directory is:

  • examples
  • host-manager
  • manager
  • ROOT
  • sample

I have a web application running on my localhost on a Tomcat. I created a war file MyProject.war and put it into the webapps directory. Restarting the Tomcat server, the war is extracted and I have this structure:

  • examples
  • host-manager
  • manager
  • MyProject
  • ROOT
  • sample

Calling the URL http://mysubdomain.mysite.com:8080/ I get the Tomcat start page with

If you’re seeing this page with a web browser, it means you’ve setup Tomcat successfully. Congratulations!.

Calling http://mysubdomain.mysite.com:8080/MyProject/ I get the page of my project.

What I want, is that I can access my project with the URL http://mysubdomain.mysite.com:8080/ and not with http://mysubdomain.mysite.com:8080/MyProject/

How can I do this?

Best Regards.

Update
I have this in my server.xml:

<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
    <Context docBase="MyProject" path="/" />
</Host>

I did it on path with an empty string and / and restart Tomcat. Both does not work. The main directory shows me the Tomcat start page instead of my project. The project is only reachable with …:8080/MyProject/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:23:29+00:00Added an answer on May 19, 2026 at 4:23 am

    Delete ROOT folder, rename MyProject.war to ROOT.war and restart.

    You can also do it by adding the following line to inside the <Host> entry of /conf/server.xml

    <Context docBase="MyProject" path="" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application running in tomcat that has a bunch of configuration files
I have two web applications running in the same Tomcat Instance. In one of
I have installed java and tomcat appache server on linux. When i am going
I have a Tomcat6 running on a Windows2003 machine. I deployed 2 Grails apps
I have two web application projects which are related. One is the website itself
I have a Java EE application running on jboss-5.0.0.GA. The application uses BIRT report
I have a web server that responds to a number of different sites on
In tomcat 6 i have a servlet running openbluedragon, everything compiles and servers up
I'm running tomcat and have some jsp pages that display a subset of a
I have two applications under tomcat/webapps folder. tomcat/webapps/App1 tomcat/webapps/App2 Both applications share the same

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.