Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

ngx_lua - ngx.var.request_body search

$
0
0
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

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>