Re: Load Balancer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
-- 
-WhoAmI-

Email: whoami@xxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux