Input Headers. - headers_more_module.

David | StyleFlare david at styleflare.com
Fri Aug 31 16:12:40 UTC 2012


Strangely

I still dont see the header variable set.

I installed nginx-lua and I added the snippet you sent me to the nginx 
config.

nginx starts fine, but I dont see the value set.

Any ideas?

I also upgraded to the 1.3.4 version of Nginx while I did this.

Thanks so much..

David.

On 8/30/12 5:33 PM, agentzh wrote:
> Hello!
>
> On Thu, Aug 30, 2012 at 2:30 PM, agentzh <agentzh at gmail.com> wrote:
>>      location / {
>>          access_by_lua '
>>              local res = ngx.location.capture("/auth")
>>              if res.status == 200 then
>>                  ngx.req.set_header("X-Server-ID", res.var.pg_server)
> Sorry, typo here, this line should be
>
>                   ngx.req.set_header("X-Server-ID", ngx.var.pg_server)
>
> Best regards,
> -agentzh
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list