title: ubuntu apache2 mod_proxy replace internal url's
body: <p>I've followed every guide I can find on Google and still cant solve this!</p>
  
  <p>I've managed to set up mod_proxy to pull back an internal website, but the website adds internal links to menu items which wont work for external users, so Im trying to rewrite them from <code>.int</code> domains to <code>.com</code> domains.</p>
  
  <p>I have the following virtual host.</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName shop.itmanx.com
  
      ProxyRequests Off
      ProxyPreserveHost On
      #ProxyHTMLInterp On     #used to be ProxyHTMLEnable
      #ProxyHTMLExtended On   #will parse all scripts and css files as well [slow if on]
  
      ProxyPass / http://shop.itmanx.int/
      ProxyPassReverse / http://shop.itmanx.int/
      #ProxyHTMLURLMap / /test/
      ProxyHTMLURLMap (.*)itmanx.int(.*) $1itmanx.com$2 [Rin]
  
      &lt;Location /&gt;
          Order allow,deny
          Allow from all
      &lt;/Location&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I have made sure the components are loaded</p>
  
  <pre><code>[Sun Jan 29 14:59:46 2012] [warn] module proxy_module is already loaded, skipping
  [Sun Jan 29 14:59:46 2012] [warn] module proxy_http_module is already loaded, skipping
  [Sun Jan 29 14:59:46 2012] [warn] module proxy_html_module is already loaded, skipping
  </code></pre>
  
  <p>but no links are altered. So what am i missing?</p>
  
  <p>The server is Ubuntu Server 11.10</p>