Hello! On Wed, Mar 28, 2018 at 04:15:44PM -0400, Ryan Burn wrote:
> > You are not allowed to modify r->headers_in, at any time. > > If I want to ensure that certain headers are added if the request is > proxied upstream, is there any way to do that? Recommended approach is to export a variable with the appropriate value, and use proxy_set_header X-Your-Header $your_variable; in the configuration. For example, nginx itself uses this approach with X-Forwarded-For, see the $proxy_add_x_forwarded_for variable description here: http://nginx.org/en/docs/http/ngx_http_proxy_module.html#var_proxy_add_x_forwarded_for -- Maxim Dounin http://mdounin.ru/ _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel