server {
listen 80;# 监听80端口
server_name manage.leyou.com; #转发manage.leyou.com
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://127.0.0.1:8081;#转发到本地的8081端口上
proxy_connect_timeout 600;#链接超时600ms
proxy_read_timeout 600; #读取超时600ms
}
}