====== リクエストを複数バックエンドに分散 ====== # vi /etc/nginx/conf.d/default.conf upstream backend { server 192.168.1.2:8080; server 192.168.1.3:8080; } server { listen 80; server_name 0.0.0.0; location / { proxy_pass http://backend; } }
# vi /etc/nginx/conf.d/default.conf
upstream backend { server 192.168.1.2:8080; server 192.168.1.3:8080; } server { listen 80; server_name 0.0.0.0; location / { proxy_pass http://backend; } }