httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Errol Neal" <en...@dfi-intl.com>
Subject [users@httpd] URL Rewriting with proxy-html
Date Tue, 01 Aug 2006 16:24:56 GMT
I'm having trouble getting proxy-html to behave the way I want it to.
It's rewriting comments and touching parts of the html that permit our
flash stuff to work..

<VirtualHost 172.16.101.119:80>
        ServerAdmin netop@dfi-intl.com
        DocumentRoot /var/www/proxy1/wwwroot
        CustomLog "|/usr/local/sbin/cronolog
/var/www/proxy1_dfi-intl_com/logs/%Y-%m-%d-proxy1_dfi-intl_com.log"
combined
        ProxyRequests Off
        ProxyHTMLLogVerbose On
        #ProxyHTMLStripComments On
        ProxyPass /usaf/ http://172.16.103.200/
        ProxyHTMLURLMap http://172.16.103.200/ /usaf
        <Location /usaf>
            ProxyPassReverse /
            #ProxyHTMLStripComments On
            SetOutputFilter proxy-html
            
            ProxyHTMLURLMap / /usaf/	
            ProxyHTMLURLMap /usaf/ /usaf
            ProxyHTMLMeta on
            ProxyHTMLFixups on
            ProxyHTMLLogVerbose On
            ProxyHTMLExtended on
            ProxyHTMLStripComments On
            RequestHeader unset Accept-Encoding
        </Location>

</VirtualHost>

So for a example, "application/x-shockwave-flash" ends up as
"application/usaf/x-shockwave-flash" and a comment
"// Visual basic helper required to detect Flash Player ActiveX control
version information" is rewritten as 
" /usaf//usaf/ Visual basic helper required to detect Flash Player
ActiveX control version information". It also seems as if some recursive
behavior has been introduced, but only for the comments. Any helps/hints
are much apprecited. 
__________________________________________
Errol Uriel Neal Jr.
Sr. Network Administrator
DFI International, Inc.
1717 Pennsylvania Ave NW, Suite 1300
Washington, DC  20006
Tel (202)452-6955
Fax (202)452-6910
eneal@dfi-intl.com
www.dfi-intl.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message