Welcome! Log In Create A New Profile

Advanced

Re: Input Headers. - headers_more_module.

August 30, 2012 01:24PM
Il giorno 30/ago/2012, alle ore 19:12, David | StyleFlare <david@styleflare.com> ha scritto:

> I am trying to figure out what I dont see request headers added to the request.
>
> I am trying to add 'X-Server-ID: $id'
>
> Here is a snippet form my config.
>
> location /{
> more_set_input_headers 'X-Server-ID: $id';
> more_set_headers 'X-Server-ID: $id';
>
> uwsgi_pass://upstream;
> }
>
>
> I see X-Server-ID sent in the response headers, but my upstream application does not seem to get the Header Variable.
>
> I am not sure what I am doing wrong here. I read the docs here for explanation, but I cant seem to figure it out.
> http://wiki.nginx.org/HttpHeadersMoreModule
> and
> http://wiki.nginx.org/HttpUwsgiModule#Parameters_transferred_to_uWSGI-server.
>

If you need to pass custom data to a uWSGI backend just use

uwsgi_param Server_ID $id;

(you can use whatever key name you want, it will be appended to the WSGI environ)

--
Roberto De Ioris
http://unbit.it
JID: roberto@jabber.unbit.it

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Input Headers. - headers_more_module.

David | StyleFlare August 30, 2012 01:14PM

Re: Input Headers. - headers_more_module.

roberto August 30, 2012 01:24PM

Re: Input Headers. - headers_more_module.

David | StyleFlare August 30, 2012 02:00PM

Re: Input Headers. - headers_more_module.

agentzh August 30, 2012 03:10PM

Re: Input Headers. - headers_more_module.

David | StyleFlare August 30, 2012 04:14PM

Re: Input Headers. - headers_more_module.

agentzh August 30, 2012 05:32PM

Re: Input Headers. - headers_more_module.

agentzh August 30, 2012 05:34PM

Re: Input Headers. - headers_more_module.

David J August 30, 2012 05:42PM

Re: Input Headers. - headers_more_module.

David | StyleFlare August 31, 2012 12:14PM

Re: Input Headers. - headers_more_module.

agentzh August 31, 2012 02:16PM

Re: Input Headers. - headers_more_module.

David J August 31, 2012 03:30PM

Re: Input Headers. - headers_more_module.

David | StyleFlare September 03, 2012 05:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 213
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready