Catch ALL requests by LUA-script
andiL
nginx-forum at nginx.us
Tue Mar 1 10:34:40 MSK 2011
Hi,
i'm using the nginx-lua-module by agentzh on the current stable nginx
(0.8.54) (also the drizzle and echo module and php via php-fpm)
it's working fine with a plain nginx running
What i would like to to:
Is it possible to create a location-entry in the nginx.conf that ALL
requests coming to the Server are handled by a LUA-script?
i.e. i have set the *.php and / locations to internal so only the lua
script should have access to the files (it's responsible for the in- and
output)
i created another "location * { }" ... which contains
"rewrite_by_lua_file /path/to/the/script" and for testing purposes
"default_type 'text/html'"
But now, every request to the Server ends with a 404.
Background: I would like to have a LUA-script which handles every
request and filters certain Headers, Parameters, etc.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,179364,179364#msg-179364
More information about the nginx
mailing list