LeeZBug opened a new issue, #12750:
URL: https://github.com/apache/apisix/issues/12750
### Description
When I configure a upstream who return 302 http status code and give
Location header ,but I want to apisix follow 302 and get final result to
client. I don't find plugin who can do this.
I can use this configuration on Nginx to resolve this ,configuration like
this
```
location /symbols {
proxy_intercept_errors on;
error_page 301 302 307 = @redirect_handler;
resolver 8.8.8.8 valid=30s;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://msdl.microsoft.com/download/symbols/;
proxy_set_header Host msdl.microsoft.com;
}
location @redirect_handler {
resolver 8.8.8.8 valid=30s;
set $redirect_target $upstream_http_location;
proxy_pass $redirect_target;
proxy_hide_header Location;
proxy_set_header Host
vsblobprodscussu5shard71.blob.core.windows.net;
#proxy_set_header Host msdl.microsoft.com;
proxy_set_header X-Real-IP $remote_addr;
}
```
### Environment
- APISIX version (run `apisix version`): 3.14.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]