首页  >  问答  >  正文

关于nginx反向代理,只能访问首页?

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;
        }
}

首页可以正常访问,但是登陆进去的时候,显示

滿天的星座滿天的星座2712 天前1315

全部回复(3)我来回复

  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:32:18

    proxy_redirect off;
    把这行去掉试试

    回复
    0
  • 黄舟

    黄舟2017-05-16 17:32:18

    Object moved to here 那个链接指到哪里了?

    回复
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:32:18

    建议set header Host...

    回复
    0
  • 取消回复