Skip to content

Commit 42269b9

Browse files
authored
[update] Securing Nginx With ModSecurity (#7167)
Fixes: #6803
1 parent fd14e3b commit 42269b9

File tree

1 file changed

+5
-5
lines changed
  • docs/guides/security/basics/securing-nginx-with-modsecurity

1 file changed

+5
-5
lines changed

docs/guides/security/basics/securing-nginx-with-modsecurity/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ ModSecurity is a firewall and therefore requires rules to function. This section
198198
1. 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

0 commit comments

Comments
 (0)