Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a .war file (MySite.war). When I copy it into webapps of Apache-Tomcat, it unpackage to MySite directory. So in to access it, I need to type in url http://localhost:8080/MySite.
In this case, I would like my site to be http://localhost:8080.
How to do that?
Thanks!
Posted

1 solution

I found the solution!
Build our web application to ROOT.war. Then deploy.
Therefore the URL would be:
HTML
http://localhost:8080
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900