I put a website.WAR file in /webapps folder, and set the context of tomcat/conf/server.xml in the following way:
Therefore I can use
http://ip/ to browse the web pages located in /webapps/website folder. When I want to re-deploy the WAR by a modified one,
tomcat just deploy the new WAR file. Everything looks fine, but I cannot use
http://ip/ to browse anymore. Instead, I have to type
http://ip/website to browse the same page. The setting of context path seems to be inactive.
Does anyone know how I can keep the effect of context path after trying to re-deploy the website?