I have a Tomcat6 server on a Linux server. Directory structure webapps:
- examples
- host manager
- manager
- ROOT
- sample
I have a web application running on my localhost on Tomcat. I created a war file MyProject.warand put it in the webapps directory. Rebooting the Tomcat server, the war is removed, and I have this structure:
- examples
- host manager
- manager
- Myproject
- ROOT
- sample
Call URL http://mysubdomain.mysite.com:8080/I get a Tomcat start page with
If you see this page in a web browser, it means that you have successfully configured Tomcat. Congratulations!
Call http://mysubdomain.mysite.com:8080/MyProject/I get my project page.
I want to be able to access my project with a URL http://mysubdomain.mysite.com:8080/, not usinghttp://mysubdomain.mysite.com:8080/MyProject/
How can i do this?
Regards.
.xml:
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context docBase="MyProject" path="/" />
</Host>
/ Tomcat. . Tomcat . ...: 8080/MyProject/