On Wed, May 14, 2014 at 06:38:45PM -0400, justink101 wrote:

Hi there,

> If I try and
> fetch a header that I know is being returned from the proxy it is
> undefined.
> 
> location @four_o_four {
>     internal;
>     more_set_headers "X-Host: $sent_http_x_host";

What value do you think $sent_http_x_host has, and why do you think that?

Compare $http_name and $sent_http_name in
http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
with $upstream_http_... in
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#variables

and then use $upstream_http_x_host.

        f
-- 
Francis Daly        [email protected]

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to