rampageX
第 107 位注册会员 注册时间:2021-10-02 01:24
最近主题列表更多主题>>
最近回复列表更多回复>>
  • @lgs821 很奇怪,我反代其他的程序也会出现这个问题,必须加上那个块,比如 cloudreve, metube
  • 已解决,参考宝塔那个教程,反代还需要上面 `location ~* \.(gif|png|jpg|css|js|woff|woff2)$` 那一块代码:

    location ~* \.(gif|png|jpg|css|js|woff|woff2)$ {
    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_redirect off;
    proxy_pass http://127.0.0.1:3030;
    }

    location / {
    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_redirect off;
    proxy_pass http://127.0.0.1:3030;
    }


    https://img.imxcz.com/markdown/2021-09/16/003844-U47jRM.png