On 14 October 2011 22:24, Nginx User <nginx at nginxuser.net> wrote: > location ~ ^.+\.php$ { > content_by_lua 'ngx.exec("@proxy");'; > } That should read location ~ ^.+\.php$ { rewrite_by_lua 'ngx.exec("@proxy");'; }