跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • ZFAKA 使用 nginx https 反向代理怎么写
未分類
24 6 月 2021

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

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

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具