Welcome! Log In Create A New Profile

Advanced

POST data pattern search

Posted by vijeeshk_83 
POST data pattern search
March 30, 2015 06:46PM
Hello All

I want to search for a particular pattern in the POST data of the request and action on it according to the results of search

if ($request_body ~* (myvalue))
{

proxy_pass http://http_backend;

}


I tried this module https://github.com/tszming/nginx-rewrite-request-body-module

it works when POST data is small , when we have a long list of args , parsing takes forever and it timeouts. Is there any alternatives?

-Vij
Re: POST data pattern search
March 30, 2015 06:52PM
Only with Lua, https://github.com/chaoslawful/lua-nginx-module

See also https://groups.google.com/forum/#!forum/openresty-en

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 230
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready