文章详情页
关于nginx反向代理,只能访问首页?
浏览:181日期:2024-06-18 09:40:12
问题描述
nginx 配置文件如下
server{listen 80;server_name jwch.dashuang.name;location /{proxy_pass http://210.44.176.132;proxy_redirect off;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;}}
首页可以正常访问,但是登陆进去的时候,显示
问题解答
回答1:proxy_redirect off;把这行去掉试试
回答2:Object moved to here 那个链接指到哪里了?
回答3:建议set header Host...
排行榜
![$fields = $values = [];这条代码一直定义不了,一直报错,老师的源码也是被报错的,执行不了,请问该怎么解决这个问题](http://www.haobala.com/attached/image/news/202205/093622cb60.png)