Welcome! Log In Create A New Profile

Advanced

Catch ALL requests by LUA-script

March 01, 2011 02:34AM
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.
Subject Author Posted

Catch ALL requests by LUA-script

andiL March 01, 2011 02:34AM

Re: Catch ALL requests by LUA-script

agentzh March 01, 2011 03:42AM

Re: Catch ALL requests by LUA-script

andiL March 01, 2011 04:53AM

Re: Catch ALL requests by LUA-script

agentzh March 01, 2011 06:14AM

Re: Catch ALL requests by LUA-script

andiL March 01, 2011 07:52AM

Re: Catch ALL requests by LUA-script

HowToMeetLadies May 02, 2011 12:11AM

Re: Catch ALL requests by LUA-script

agentzh May 03, 2011 10:56PM

Re: Catch ALL requests by LUA-script

HowToMeetLadies May 04, 2011 08:05PM

Re: Catch ALL requests by LUA-script

HowToMeetLadies May 05, 2011 12:29PM

Re: Catch ALL requests by LUA-script

agentzh May 04, 2011 11:22PM

Re: Catch ALL requests by LUA-script

agentzh May 06, 2011 12:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready