user root; worker_processes 2; events { use epoll; worker_connections 10240; } http { include mime.types; default_type application/octet-stream; keepalive_timeout 65; server { listen 80; server_name 127.0.0.1; location / { proxy_pass http://$http_host$request_uri; } error_page 500 502 503 504 /5.html; location = /50x.html { root html; } } }
百度nginx代理
修改以后运行后,是500 internal server error