Input Headers. - headers_more_module.

David | StyleFlare david at styleflare.com
Mon Sep 3 21:03:51 UTC 2012


Updated Today.

This worked nicely.

Thank you.



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