upstream redirect instead proxy_pass

EvilMoe nginx-forum at
Sun May 17 17:07:30 UTC 2015


I would like to use Nginx as Load Balancer (traffic). My config is:

upstream storages {
        server str1 weight=1 max_fails=1 fail_timeout=10s;
        server str2 weight=1 max_fails=1 fail_timeout=10s;

server {
        listen 80;
        server_name verteilen;
        location / {
                proxy_pass http://storages;
                #return 302 $scheme://storages;

How can I redirect to the server of upstream? With proxy_pass does it work
but I want to move the traffic to several servers.
I just need the "storages" variable.


Posted at Nginx Forum:,258940,258940#msg-258940

More information about the nginx mailing list