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; }