Tomcat directory listing links include duplicate context path

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content