Deploy war on Tomcat without the war name in the URL

后端 未结 4 591
终归单人心
终归单人心 2020-12-03 21:50

I built a war file called myapp.war and deployed it on Tomcat. I\'ve changed the port from 8080 to 80 so I c

4条回答
  •  温柔的废话
    2020-12-03 22:32

    You don't have to setup an Apache front-end or to configure virtual hosting in Tomcat for this. Instead, just deploy your webapp to the "root context". To do this, refer to How do I make my web application be the Tomcat default application ? on the Tomcat Wiki. They describe the three possible methods so you'll be able to pickup the one that suits the best your needs.

提交回复
热议问题