Deploy war on Tomcat without the war name in the URL
deployment, tomcat
Solution
All you need to do is name your war `ROOT.war`.
Problem
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?