Default Konfiguration ansehen:
egrep -v '^\s*(#|$)' /etc/nginx/sites-available/default
cd /etc/nginx/sites-available mv default orig
default
:
server { location / { proxy_pass http://www.linuxhotel.de:80; } }
nginx -t
nginx -s reload
server { location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://www.linuxhotel.de:80; } }
upstream loadbalance { server 192.168.222.11; server 192.168.210.10; server 192.168.229.225; server 192.168.232.101; } server { location / { proxy_pass http://loadbalance; } }