httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torsten herden <toddi...@yahoo.de>
Subject [users@httpd] mod_rewrite and round robin
Date Wed, 09 Jul 2003 21:27:09 GMT
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


Mime
View raw message