Modify request body before sending to upstream
mex
nginx-forum at nginx.us
Tue Jan 27 06:29:01 UTC 2015
Hi,
> I tried ngx_lua but I might've been doing something wrong. It
> complained that I am not allowed to use "proxy_pass" following a
> content rewrite.
you should read the documentatrion carefully:
http://wiki.nginx.org/HttpLuaModule#content_by_lua
"Do not use this directive and other content handler directives in the same
location.
For example, this directive and the proxy_pass directive should not be used
in the same location."
what you can do is use the access_by_lua or rewrite_by_lua - directive
cheers,
mex
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256226,256284#msg-256284
More information about the nginx
mailing list