I have 2 runnings tomcats (version 8). 1 is reachable via http://localhost:8080/ . All other apps of this tomcat are reachable as expected on:
- http://localhost:8080/manager (Tomcats manager app)
- http://localhost:8080/myApp
- http://localhost:8080/docs (Tomcatdocumentation)
- http://localhost:8080/examples (Tomcats jsp examples)
The second tomcat is reachable via http://localhost:9090/ . (Other port) But I need an other difference. I would like to change the URL prePath like the following:
- http://localhost:9090/test/manager (Tomcats manager app)
- http://localhost:9090/test/myApp
- http://localhost:9090/test/docs(Tomcatdocumentation)
- http://localhost:9090/test/examples (Tomcats jsp examples)
I tried a lot with Context
element in server.xml
and context.xml
. But nothing meets my requirement.
I would like to have a path prefix, also for the ROOT as http://localhost:9090/test/ .
I don't know how to, so does someone knows a good solution for this?