Welcome! Log In Create A New Profile

Advanced

Re: Loadbalancing only /

Reinis Rozitis
November 06, 2009 11:04AM
http://wiki.nginx.org/NginxHttpCoreModule#location

location = / {
# matches the query / only.
}

rr


--- Original Message -----
From: ""Günther Haslbeck"" <ghaslbe@gmx.de>
To: <nginx@sysoev.ru>
Sent: Friday, November 06, 2009 5:14 PM
Subject: Loadbalancing only /


> Hi,
> how can i loadbalance only / (/index.html or whatever)
>
> i tried
>
> location / {
> proxy_redirect off;
> proxy_max_temp_file_size 0;
> proxy_pass http://cluster2/$request_uri;
> }
>
> ....
>
> upstream cluster2 {
> server www1.mydomain.de:80 weight=1;
> server www2.mydomain.de:80 weight=50;
> }
>
> but this balances everything ... bad...
>
>
> I only want to balance things that i have defined like
>
> location /bla
> location /blubb/one
> AND the Starpage
> location /
>
> I also tried
> location ^/$
> but with no Effekt...
>
> How can i do that? Any Ideas?
>
> Thanks!
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
>
>
>
Subject Author Posted

Loadbalancing only /

"Günther Haslbeck" November 06, 2009 10:34AM

Re: Loadbalancing only /

Maxim Dounin November 06, 2009 10:52AM

Re: Loadbalancing only /

Reinis Rozitis November 06, 2009 11:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 208
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready