mod_proxy_html not changing all URLs

Discussion in 'Apache' started by burrkie, Jun 28, 2011.

  1. #1
    Hello,

    Im using Apache as a reverse proxy but when I try to rewrite the URLs, only the URLs in the <head> of the HTML file gets rewritten

    eg <link rel="shortcut icon" href="/app/files/icon.ico" type="image/x-icon">
    
    Code (markup):
    but down in the body I have
    
    <td width="20%" align="center" valign="middle">
              <img name="grplogo" src="/files/grplogo3d.gif" alt="GRP GmbH Aachen">
            </td>
    Code (markup):
    which doesnt get rewritten to src="/app/files/grplogo3d.gif"

    Ive looked around a lot and still have no idea as to why the start gets rewritten but not the rest.

    This is my config:

    ProxyPass /app http://myappsrv
    ProxyPassReverse /app http://myappsrv
    
    ProxyHTMLEnable On
    
    ProxyHTMLURLMap /files /app/files
    Code (markup):
    Does anyone have any ideas?
     
    burrkie, Jun 28, 2011 IP