Answer the question
In order to leave comments, you need to log in
Nginx how to change response header field from server?
I'm making a proxy server on Nginx.
And from the server I get the Location header " https://site.com " in the response. How to change this header and pass it to the client?
As I understand it, the "proxy_set_header" parameter passes the header to the server. But I didn’t find something alternative for the client (The help of the guru is required.
Answer the question
In order to leave comments, you need to log in
You need to use the proxy_redirect directive
nginx.org/en/docs/http/ngx_http_proxy_module.html#...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question