标签: nginx
我非常困惑为什么在访问我的服务器时总是得到我的本地页面。
我的nginx.conf中有错误吗?
答案 0 :(得分:0)
我通过设置一些标题来解决这个问题。
proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;