
复制… upstream phpserver { server 192.168.0.20:80 weight=5; server 192.168.0.21:80 weight=5; } … server { listen 80; server_name localhost; root /webroot; index index.php index.html index.htm; location ~ .*\.(php|php5)?载均
$ { proxy_pass http://phpserver; include proxy.conf; } location ~ /\..+ { deny all; } access_log /var/log/nginx/access.log; }1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.