frps-nginx-https icon indicating copy to clipboard operation
frps-nginx-https copied to clipboard

case 3 访问内网 openwrt luci web控制台重定向错误

Open nie11kun opened this issue 3 years ago • 0 comments

一直在使用你的配置模板通过服务器 nginx 实现 https 到内网 http 的访问,发现一般的静态链接没有什么问题,最近发现想要访问内网安装的 openwrt web 控制台会出现:redirected you too many times. 报错。

同样的问题出现在尝试转发内网 esxi 的web 页面。

看起来像是一直在尝试跳转到新的页面但是服务器转发的 location 没有被修改导致无线跳转。

自己不太懂,请教下怎么处理这个问题呢。

下面是我的 nginx 转发配置:

    location / {
        proxy_pass          http://127.0.0.1:6002;
        proxy_redirect      off;

        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    Upgrade           $http_upgrade;
        proxy_set_header    Connection        "upgrade";
        proxy_http_version  1.1;
    }

nie11kun avatar Apr 09 '21 00:04 nie11kun