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.