title: How to use mod_proxy and change the application path?
body: <p>Imagine you want to enable access to your <strong>manager</strong> Tomcat app through Apache.The basic approach would be:<br/></p>
  
  <pre><code>ProxyPass /manager ajp://localhost:8009/manager
  ProxyPassReverse /manager ajp://localhost:8009/manager
  </code></pre>
  
  <p>And this is working as expected, by access <code>http://yourdomain/manager</code>.
  However, things do not work if you also want to change the name. Imagine you want to access it through <code>http://yourdomain/foo</code>.</p>
  
  <pre><code>ProxyPass /foo ajp://localhost:8009/manager
  ProxyPassReverse /foo ajp://localhost:8009/manager
  </code></pre>
  
  <p>When you access foo the address bar will change to <code>http://yourdomain/manager</code> and display a 404: The requested URL /manager/ was not found on this server.</p>
  
  <p>I've tried the proxy_html code bellow, but with the same results:</p>
  
  <pre><code>ProxyPass /foo ajp://localhost:8009/manager
  ProxyPassReverse /foo ajp://localhost:8009/manager
  SetOutputFilter proxy-html
  ProxyHTMLURLMap ^/manager(.*)$ /foo/$1 R
  </code></pre>
  
  <p>I am using version 3.0.1 of mod_proxy_html, hence not having defined "ProxyHTMLEnable On" (which I believe is new in 3.1).<br/>
  <strong>What is missing or badly defined?</strong> <br/>
  (note: I believe you can also do it with a rewrite rule, but this would probably be simpler)</p>