反向代理后端 response.sendRedirect() 地址不对
原配置
location / {
proxy_pass http://localhost:8086;
}
修改为
location / {
proxy_pass http://localhost:8086;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_redirect off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
原文链接:https://blog.csdn.net/zhh123sy001/article/details/86491335