I have my web application whose name is myApp.war
. I copy my war file in $CATALINA_BASE/webapps
. Now I can open my site using the URL:
http://localhost:8080/myApp/
However I want to change the path of my application (for example: newName
), so I add a file ROOT.xml
in $CATALINA_BASE/conf/Catalina/localhost
.
Here is the code :
<Context docBase="myApp" path="/newName" debug="0" reloadable="true"/>
Now I use the new URL:
http://localhost:8080/newName/
but it doesn't work.