Home  >  Q&A  >  body text

Regarding nginx reverse proxy, I can only access the homepage?

nginx configuration file is as follows

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

The homepage can be accessed normally, but when logging in,

is displayed.

滿天的星座滿天的星座2712 days ago1312

reply all(3)I'll reply

  • 淡淡烟草味

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

    proxy_redirect off;
    Try removing this line

    reply
    0
  • 黄舟

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

    Object moved to here Where does that link point to?

    reply
    0
  • 淡淡烟草味

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

    It is recommended to set header Host...

    reply
    0
  • Cancelreply