Adding and using header (HTTP) in nginx [closed]
To add a header, add the add_header declaration to either the location block or the server block: server { add_header X-server-header “my server header content!”; location /specific-location { add_header X-location-header “my specific-location header content!”; } } An add_header declaration within a location block will override the same add_header declaration in the outer server block. e.g. … Read more