You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by elsergio <se...@telefonica.net> on 2008/09/01 11:15:45 UTC
Re: [users@httpd] Load Balancer
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
Re: [users@httpd] Load Balancer
Posted by WhoAmI <wh...@autistici.org>.
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
<se...@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