Default Konfiguration ansehen: egrep -v '^\s*(#|$)' /etc/nginx/sites-available/default ====== nginx als Reverse Proxy ====== cd /etc/nginx/sites-available mv default orig ''default'' : server { location / { proxy_pass http://www.linuxhotel.de:80; } } ==== Konfiguration testen ==== nginx -t ==== reload ==== nginx -s reload ===== Header setzen ===== server { location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://www.linuxhotel.de:80; } } ===== Lastverteilung ===== 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; } } ====== Dokumentation ====== https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/