Welcome! Log In Create A New Profile

Advanced

ngx_lua - ngx.var.request_body search

Posted by achuth 
ngx_lua - ngx.var.request_body search
February 12, 2013 07:53AM
Hi All

I am using nginx as a reverse proxy. The reverse proxy works based on the content of the request body. But at times the request body is too huge and hence content searching is taking too much time.

And my requirement is once I find the first occurence of the word in the body, I dont have to search for it. Rather would forward the complete request intended orginal server. So is there any progressive way of searching the content of the request body rather than storing the complete request and then searching which seems to be very time consuming. Even for a 1 KB body was taking around 20 secs.

Also am using the lua plugin for this in nginx.

Any help is much appreciated.

regards
Achuth
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
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