Hi
Is it possible to set the headers of a lua request to my auth server?
I can set the querystring/args as shown in a few examples but never seen
headers being set in lua?
Many thanks
Sent from my iPhone
Hi
Is it possible to set the headers of a lua request to my auth server?
I can set the querystring/args as shown in a few examples but never seen
headers being set in lua?
Many thanks
Sent from my iPhone
On Sun, Feb 27, 2011 at 7:23 AM, Richard K.
[email protected] wrote:
Hi
Sorry for the delay. I’ve been on holiday in the next few days
Is it possible to set the headers of a lua request to my auth server?
Yes, use the ngx_headers_more module’s more_set_input_headers
directive or ngx_proxy module’s proxy_set_header directive in your
auth server’s proxy location.
http://wiki.nginx.org/NginxHttpProxyModule#proxy_set_header
I can set the querystring/args as shown in a few examples but never seen
headers being set in lua?
BTW, by default, the main request’s headers will be forwarded to your
subrequest destination locations. If that’s not what you want, use the
proxy_pass_request_headers directive to disable that:
http://wiki.nginx.org/NginxHttpProxyModule#proxy_pass_request_headers
For now, setting subrequest headers from within Lua is not implemented
yet in ngx_lua. But it’s on our TODO list
Cheers,
-agentzh
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs