S
S
Svav2015-11-05 21:26:05
Nginx
Svav, 2015-11-05 21:26:05

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

2 answer(s)
I
Igor Alyakimov, 2015-11-05
@Svav

You need to use the proxy_redirect directive
nginx.org/en/docs/http/ngx_http_proxy_module.html#...

U
un1t, 2015-11-05
@un1t

add_header ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question