标签:一个 cat class root lin 代理 pretty uri nginx反向代理
# the 90 portserver {listen 90;server_name zxy1994.cn;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;proxy_set_header Host $host:$server_port; #这里是重点,这样配置才不会丢失端口location / {proxy_pass http://127.0.0.1:9001;}location = /50x.html {root html;}}
标签:一个 cat class root lin 代理 pretty uri nginx反向代理
原文地址:http://www.cnblogs.com/zeng1994/p/7471021.html