httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WhoAmI <who...@autistici.org>
Subject Re: [users@httpd] Load Balancer
Date Mon, 01 Sep 2008 09:22:36 GMT

Hi,

is the directory you want to process on a random server.

For example with the line RewriteRule ^(/blog.*)$
http://${servers:pool}.domain.com$1 [R,L] requestes for www.domain.com/blog
will be sent randomly to:

www1.domain.com/blog
www2.domain.com/blog
www3.domain.com/blog
www4.domain.com/blog

I think that with a small modify you can use it to process requests of the
home directory (/)

WhoAmI

On Mon, 1 Sep 2008 02:15:45 -0700 (PDT), elsergio
<sergio.lm@telefonica.net> wrote:
> 
> 
> Hi,
> 
> 
> /etc/apache2/lb_map:
>  pool    www1|www2|www3|www4
> 
> And in a .htaccess file:
> 
>  RewriteEngine On
>  RewriteMap servers rnd:/etc/apache2/lb_map
> 
>  RewriteRule ^(/blog.*)$ http://${servers:pool}.domain.com$1 [R,L]
> 
> Can you explain me the last line?
> 
> BR,
> 
> Sergio
> 
> --
> View this message in context:
> http://www.nabble.com/Load-Balancer-tp19217643p19251344.html
> Sent from the Apache HTTP Server - Users mailing list archive at
> Nabble.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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
-- 
-WhoAmI-

Email: whoami@autistici.org
WebSite: http://www.autistici.org/whoami/


---------------------------------------------------------------------
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