I built a war file called myapp.war
and deployed it on Tomcat. I've changed the port from 8080 to 80 so I can then get to it at example.com/myapp
(where example.com
is my host).
How can I get configure the application so that when I go to example.com
, it shows my app? I don't want to just redirect from example.com
to example.com/myapp
- I don't want to have myapp
in the URL.
Do I have to set up Apache to serve the pages like this, or can I do it with a virtual host in the Tomcat configuration?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…