nginx反向代理x-ui面板服务配置文件分享

location ^~ /zuphp {
    proxy_pass http://127.0.0.1:31548/zuphp;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /data2022 {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:17777;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;
        proxy_read_timeout 300s;
        # Show realip in v2ray access.log
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

配置文件

注意添加节点IP后需要放行端口才可以使用,上面的是面板地址,下面的是节点的
THE END
分享
二维码
打赏
海报
nginx反向代理x-ui面板服务配置文件分享
location ^~ /zuphp { proxy_pass http://127.0.0.1:31548/zuphp; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; ……
<<上一篇
下一篇>>
文章目录
关闭
目 录