Welcome! Log In Create A New Profile

Advanced

auth_request_set into variable and lua

December 04, 2012 05:18PM
Trying to get a header from an auth_request into a variable and use it from Lua with no luck. This was the simple example I tried.

location = /auth {
add_header X-Boo "Hello World";
return 204;
}

location /test {
auth_request /auth;
auth_request_set $test $upstream_http_x_boo;
add_header X-BooHoo $test;

content_by_lua '
ngx.say("(" .. ngx.var.test .. ")")
';
}
SubjectAuthorPosted

auth_request_set into variable and lua

djczaskiDecember 04, 2012 05:18PM

Re: auth_request_set into variable and lua

agentzhDecember 04, 2012 09:20PM

Re: auth_request_set into variable and lua

djczaskiDecember 04, 2012 10:38PM

Re: auth_request_set into variable and lua

agentzhDecember 05, 2012 10:04PM

Re: auth_request_set into variable and lua

djczaskiDecember 05, 2012 10:36PM

Re: auth_request_set into variable and lua

agentzhDecember 05, 2012 11:02PM

Re: auth_request_set into variable and lua

Maxim DouninDecember 05, 2012 06:22AM

Re: auth_request_set into variable and lua

djczaskiDecember 05, 2012 09:27AM

Re: auth_request_set into variable and lua

djczaskiDecember 05, 2012 09:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 154 on December 17, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready