httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Lowe" <rl...@netegrity.com>
Subject one proxy host--2 backend systems with same directory structure.
Date Sat, 08 Dec 2001 03:31:33 GMT
Issue:
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">
/images)
<http://proxyhost/inside> -->maps to --> <http://backend.system2:90/>
example link
(<A HREF="/images/image1.gif">
/images)
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(.*) http://nt.backend2.com:90/$1 [P]
RewriteRule ^/insite(.*) http://backend.system1.com/$1 [P]
ProxyPassReverse /insite http://backend.system2.com:90/
ProxyPassReverse /ibm <http://.backend.system1.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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message