So is "rewrite_by_lua" also evil?

agentzh agentzh at gmail.com
Thu Oct 13 06:01:26 UTC 2011


On Thu, Oct 13, 2011 at 12:52 PM, Nginx User <nginx at nginxuser.net> wrote:
>
> PS: I had earlier thought the issue might be with  the content_by_lua
> 'ngx.exec("@proxy");'; line but when I tried to use the following ...
>
>      location ~ ^.+\.php$ {
>              rewrite_by_lua 'ngx.exec("@proxy");';
>      }
>
> ... which I thought should work and seems more appropriate, I got an
> error equivalent to issuing "return 444".
>

This did not work due to exactly the same issue with ngx.exec + named
locations. Please try the latest v0.3.1rc10 release mentioned earlier.
It should also work now :)

Regards,
-agentzh



More information about the nginx mailing list