Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
494 views
in Technique[技术] by (71.8m points)

deployment - Deploy war on Tomcat without the war name in the URL

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

All you need to do is name your war ROOT.war.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...