You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ModSecurity for nginx extends your nginx configuration directives. It adds four
40
-
new directives and they are:
39
+
ModSecurity for nginx extends your nginx configuration directives.
40
+
It adds four new directives and they are:
41
41
42
-
modsecurity [On|Off] - This directive turns on or off ModSecurity functionality. Note that
43
-
this configuration directive is no longer related to the SecRule state. Instead, it now serves solely as an nginx flag to enable or disable the module.
42
+
#### modsecurity
43
+
----------------
44
44
45
-
modsecurity_rules_file [<pathtorulesfile>] - This directive indicates the location of the modsecurity configuration file.
45
+
**syntax:***modsecurity on | off*
46
46
47
-
modsecurity_rules_remote [server-key][<urltorules>] - This directive is used to indicate from where (on the internet) a modsecurity configuration file will be downloaded. It also specifies the key that will be used to authenticate to that server.
47
+
**context:***http, server, location*
48
48
49
-
modsecurity_rules [<modsecurityrule>] - This directive allows for the direct inclusion of a ModSecurity rule into the nginx configuration.
49
+
**default:***off*
50
50
51
-
### Usage example: injecting rules within nginx configuration
0 commit comments