Tomcat directory listing links include duplicate context path

Solution Verified - Updated -


  • 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.


  • Apache mod_proxy
  • Tomcat

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In