httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Cline <>
Subject [users@httpd] Problem substituting URIs using mod_proxy_html
Date Wed, 15 Sep 2004 18:29:19 GMT
I am having a problem matching and substituting some URIs contained in 
JavaScripts using mod_proxy_html.  I am a novice at Regular Expressions (I 
am on chapter 3 of the book)   so I would guess that is where my problem 

Here is the scenario - I am trying to substitute a full URL 
( that will go back through my 
reverse proxy) where the JavaScript has a partial URI (/mail/).  Oddly I 
successfully match and substitute on the first 4 occurrences within the 
page but none after that.  Thanks for any help you can offer!!!

httpd.conf (snippet of Reverse Proxy directives):

#Will's Proxy directives
ProxyHTMLLogVerbose On
LogLevel Info
SetOutputFilter proxy-html
ProxyHTMLExtended On
ProxyPass /wps/
ProxyPassReverse /wps/
ProxyPass /mail/
ProxyPassReverse /mail/
ProxyPass /icon/
ProxyPassReverse /icon/
ProxyHTMLURLMap [^]/mail -R

I used the last line above to substitute for the URI so I would not cycle 
through and substitute everything for the rule preceding it (is that 
correct? otherwise I get lots of recurring strings)

Here is an example of a successful substitution - from view source in the 


+ v;

when ProxyHTMLURLMAP processed this script:


+ v;

Here is an example of an unsuccessful substitution -from view source in 
the browser: (which occurred in the same page as the above successful 

<param name="Action1" value="New 

resulted in no substitution

I tested the above link to make sure that the full URL through the reverse 
proxy would retrieve the GIF and it did.

Will Cline
IBM Corporation
Advanced Technical Support for Pervasive Computing
4200 Frost Ct
Raleigh, N.C. 27609
919-877-3942 or tieline 254-3942

View raw message