title: Apache 2.2 rewrite with proxy
body: <p>Using Apache 2.2 on an older Ubuntu (12.04)...</p>
  
  <p>Would like to have a path that proxies to another domain (but leaving the URL in the browser unchanged).  Tried the following since Proxy stuff isn't allowed in <code>htaccess</code> (assuming not for Apache 2.2 but maybe later versions):</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    ProxyRequests Off
    ProxyPreserveHost On
  
    SSLProxyEngine on
  
    &lt;Proxy *&gt;
      Allow from all
    &lt;/Proxy&gt;
  
    ProxyPass /axis &lt;some domain&gt;
    ProxyPassReverse /axis &lt;some domain&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>This works but not when target domain redirects.  For example, if the <strong>some domain</strong> redirects to <code>/somepath</code> then instead of pointing to <code>http://&lt;my domain&gt;/axis/somepath</code> the result is <code>http:://&lt;my domain&gt;/somepath</code> which isn't defined.</p>
  
  <p>Question is how to force everything under a path on my domain (e.g. <code>/axis</code>) to match up with another domain?</p>