Input Headers. - headers_more_module.

agentzh agentzh at gmail.com
Thu Aug 30 21:33:03 UTC 2012


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



More information about the nginx mailing list