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