首頁  >  問答  >  主體

關於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 天前1317

全部回覆(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
  • 取消回覆