nginx.conf多目录配置
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { server { listen 80; server_name localhost; location / { root "D:/workspace/chuanqi2/bin-debug/"; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } server { listen 8080; server_name localhost; location / { root "D:/9y9yclient/chuanqi2/bin-debug/"; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } server { listen 8000; server_name localhost; location / { root "D:/client/chuanqi2/bin-debug/"; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } }