nginx反向代理
最基本的反向代理配置:
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; upstream web{ server 10.60.10.191:8080 weight=5; server 10.60.10.192:8080 weight=5; } server { listen 80; server_name www.123.com; location / { root html; index index.html index.htm; proxy_pass http://web; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } }
浙公网安备 33010602011771号