ZFAKA 使用 nginx https 反向代理怎么写

http://ip:518,可以正确访问,,,https://域名/shop/,反代,不正确,,curl,172.25.0.1:518/product,可以获得小店,主页,,这样代

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

复制代码

—-sRGB发布—-

原创文章,作者:梦幻街,如若转载,请注明出处:https://www.szbgp.com/38137.html