嘟嘟社区

【已解决】zfile nginx反代白屏


本帖最后由 talleye 于 2022-4-3 12:06 编辑

zfile nginx反代白屏
已经解决

配置如下

  1.        location / {
  2.         proxy_pass http://127.0.0.1:8282;
  3.         rewrite ^/(.*)$ /$1 break;
  4.         proxy_redirect off;
  5.         proxy_set_header Host $host;
  6.         proxy_set_header X-Forwarded-Proto $scheme;
  7.         proxy_set_header X-Real-IP $remote_addr;
  8.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  9.         proxy_set_header Upgrade-Insecure-Requests 1;
  10.         proxy_set_header X-Forwarded-Proto https;
  11.     }

复制代码

本帖最后由 mlcq 于 2022-4-3 11:56 编辑

用的宝塔吗?

  1.     location / {
  2.         proxy_pass http://127.0.0.1:8282/;
  3.         rewrite ^/(.*)$ /$1 break;
  4.         proxy_redirect off;
  5.         proxy_set_header Host $host;
  6.         proxy_set_header X-Forwarded-Proto $scheme;
  7.         proxy_set_header X-Real-IP $remote_addr;
  8.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  9.         proxy_set_header Upgrade-Insecure-Requests 1;
  10.         proxy_set_header X-Forwarded-Proto https;
  11.     }

复制代码


或者用NginxProxyManager

https://hostloc.com/thread-940195-1-1.html

  1. proxy_pass http://127.0.0.1:8282;

复制代码

不小心删错了,还是白屏

本帖最后由 talleye 于 2022-4-3 12:00 编辑

mlcq 发表于 2022-4-3 11:54
用的宝塔吗?

用的oneinstack proxy_pass http://127.0.0.1:8282/这里加/的话 浏览器地址会有//,去掉就行了