Hello,
I would like to use Nginx as Load Balancer (traffic). My config is:
upstream storages {
least_conn;
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.
Sven