File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
docs/guides/security/basics/securing-nginx-with-modsecurity Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -198,15 +198,15 @@ ModSecurity is a firewall and therefore requires rules to function. This section
1981981 . Copy over the unicode mapping file and the ModSecurity configuration file from your cloned ModSecurity GitHub repository:
199199
200200 sudo cp /opt/ModSecurity/unicode.mapping /etc/nginx/modsec
201- sudo cp /opt/ModSecurity/modsecurity.conf-recommended /etc/nginx/modsec/modsecurity.conf
201+ sudo cp /opt/ModSecurity/modsecurity.conf-recommended /etc/nginx/modsec
202202
203- 1 . Remove the ` . recommended` extension from the ModSecurity configuration filename with the following command:
203+ 1 . Remove the ` - recommended` extension from the ModSecurity configuration filename with the following command:
204204
205- sudo cp /etc/modsecurity/ modsecurity.conf-recommended /etc/modsecurity /modsecurity.conf
205+ sudo cp /etc/nginx/modsec/ modsecurity.conf-recommended /etc/nginx/modsec /modsecurity.conf
206206
207- 1 . With a text editor such as vim, open ` /etc/modsecurity /modsecurity.conf ` and change the value for ` SecRuleEngine ` to ` On ` :
207+ 1 . With a text editor such as vim, open ` /etc/nginx/modsec /modsecurity.conf ` and change the value for ` SecRuleEngine ` to ` On ` :
208208
209- {{< file "/etc/modsecurity /modsecurity.conf" aconf >}}
209+ {{< file "/etc/nginx/modsec /modsecurity.conf" aconf >}}
210210# -- Rule engine initialization ----------------------------------------------
211211
212212# Enable ModSecurity, attaching it to every transaction. Use detection
You can’t perform that action at this time.
0 commit comments