You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by torsten herden <to...@yahoo.de> on 2003/07/09 23:27:09 UTC
[users@httpd] mod_rewrite and round robin
Hi all,
who could check the following syntax of my
cluster.txt and my httpd.conf
I would like to filter the urls of
/maps1 /maps2 /cache1 /cache2 and then do an round
robin over specific servers.
My cluster.txt looks like:
/usr/local/apache/rewritemaps/cluster.txt
maps1 sun62i1_1.domain.de/maps
|sun62i1_2.domain.de/maps
maps2 sun63i1_1.domain.de/maps
|sun63i1_1.domain.de/maps
cache1 sun18i1_1/cache | sun18i1_2/cache
cache2 sun26i1_1/cache | sun26i1_2/cache
My httpd.conf
RewriteEngine on
RewriteLog logs/proxy_rewrite
RewriteLogLevel 0
RewwriteMap cluster
rnd:/usr/local/apache/rewritemaps/cluster.txt
RewriteRule /maps1 http://{cluster:maps1}.$2 [P,L]
RewriteRule /maps2 http://{cluster:maps2}.$2 [P,L]
RewriteRule /cache1 http://{cluster:cache1}.$2 [P,L]
RewriteRule /cache2 http://{cluster:cache2}.$2 [P,L]
ProxyRequests on
ProxyPassReverse /maps1
http://domain.de/
ProxyPassReverse /maps2 http://domain.de
ProxyPassReverse /cache1
http://domain.de/
ProxyPassReverse /cache2
http://domain.de
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de
---------------------------------------------------------------------
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