How to use $request_body?

Boris Dolgov boris at dolgov.name
Mon Oct 4 13:33:23 MSD 2010


On Mon, Oct 4, 2010 at 12:04, witekfl Gazeta.pl <witekfl at gazeta.pl> wrote:
> Hi,
> There is in config:
> location / {
>     root blabla;
-     if ($request_body ~* (blabla|bebe)) {
+     if ($request_body ~* "(blabla|bebe)") {
>          return 404;
>     }
> }
> nginx -t says invalid condition "$request_body".
> Tell me what I'm doing wrong.
> If you don't want to answer, tell me why and I'll stop asking.


-- 
Boris Dolgov.



More information about the nginx-devel mailing list