nginx 302问题

nginx抓包显示302

访问的ip端口有发生变化

踩坑

需配置

        location /abc{
                proxy_pass http://192.168.146.64:7118/;
                proxy_intercept_errors on;  #捕捉错误
                error_page 301 302 307 = @handle_redirects;
        }
    location @handle_redirects {
        set $saved_redirect_location '$upstream_http_location';
        proxy_pass $saved_redirect_location;
    }

 

posted @ 2023-11-03 14:38  开心burukku  阅读(379)  评论(0编辑  收藏  举报