httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Lowe" <>
Subject one proxy host--2 backend systems with same directory structure.
Date Sat, 08 Dec 2001 03:31:33 GMT
Front ending two backend systems which have the same directory structure,
but different content in respective directories.
for example
<http://proxyhost/ibm> -->maps to -->. <http://backend.system.1/>
example link
(<A HREF="/images/image1.gifp">
<http://proxyhost/inside> -->maps to --> <http://backend.system2:90/>
example link
(<A HREF="/images/image1.gif">
The link directs browser browser to /images which the proxy host tries to
serve up locally. So I setup a rewrite rule which prepends /ibm or /insite
to the request. Problem is that only the first rewrite match gets executed.
see example config below.

RewriteCond %{REQUEST_URI} !(^/insite(.*)$)
RewriteRule ^/images(.*) /insite/images$1 [R]
RewriteCond %{REQUEST_URI} !(^/ibm(.*)$)
RewriteRule ^/images(.*) /ibm/images$1 [R]
RewriteRule ^/ibm(.*)$1 [P]
RewriteRule ^/insite(.*)$1 [P]
ProxyPassReverse /insite
ProxyPassReverse /ibm <

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message