How do I set a url path in tomcat which points to another file in the webapp?

635 Views Asked by At

I have a file present at location Webapps/MyApp/Web/index.html in tomcat.

If I use following URL I am able to access it: :/MyApp/Web/index.html

I want to use one more URL to access this location: :/MyApp/Strom/Web/index.html

The Strom directory does not exist in my webapp and i dont want it to exist, I only want to redirect the URL of Strom to Web.

How can I achieve this in tomcat by setting context path?

I tried setting context path in server.xml under host tag.

But it didnt work.

0

There are 0 best solutions below