sRGB 大佬有话说 :
ZFAKA 使用 nginx https 反向代理怎么写
本帖最后由 sRGB 于 2021-6-24 17:19 编辑
http://ip:518 可以正确访问
https://域名/shop/ 反代 不正确
curl 172.25.0.1:518/product 可以获得小店 主页
这样代理 显示不完整
location /shop/ {
proxy_pass http://172.25.0.1:518;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
# Disable buffering when the nginx proxy gets very resource heavy upon streaming
proxy_buffering off;
}
https://z3.ax1x.com/2021/06/24/RMztF1.png