Input Headers. - headers_more_module.

David J david at styleflare.com
Thu Aug 30 21:41:35 UTC 2012


LUA.

Yay I needed an excuse to play with lua.

Seriously sounds a bit scary but I will take the plunge and see what
happens.

Thanks
 On Aug 30, 2012 5:33 PM, "agentzh" <agentzh at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120830/185d81a9/attachment.html>


More information about the nginx mailing list