]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: contrib/modsecurity: Typos and fix the reject example
authorYann Cézard <ycezard@viareport.com>
Thu, 25 Apr 2019 12:48:38 +0000 (14:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Apr 2019 14:25:49 +0000 (16:25 +0200)
Thanks to https://www.mail-archive.com/haproxy@formilux.org/msg30056.html

This patch may be backported to 1.9 and 1.8.

contrib/modsecurity/README

index e6cb305ec94f18dab5d6a9fbbb6c6e3fb41db3e6..8031389db45d2b3df95c701aef8d5b064825c4e8 100644 (file)
@@ -88,15 +88,15 @@ HAProxy configuration. For example:
       balance roundrobin
       timeout connect 5s
       timeout server  3m
-      server iprep1 127.0.0.1:12345
+      server modsec1 127.0.0.1:12345
 
 The modsecurity action is returned in a variable called txn.modsec.code. It
 contains the HTTP returned code. If the variable contains 0, the request is
 clean.
 
-   tcp-request content reject if { var(txn.modsec.code) -m int gt 0 }
+   http-request deny if { var(txn.modsec.code) -m int gt 0 }
 
-With this rule, all the request not clean are reected.
+With this rule, all the request not clean are rejected.
 
 
   Known bugs, limitations and TODO list