Tomcat directory listing links include duplicate context path
Issue
- The directory listing is displayed properly, but when a resource is clicked, a 404 error results, and it is noticed that the path to the resource includes an extra context path. For example, for a resource located in
/mycontext/images/myimage.gif, the link in the directory listing page is/mycontext/mycontext/images/myimage.gif. - When manually entering the correct url to the resource, it is displayed properly.
Environment
- Apache mod_proxy
- Tomcat
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
