Step 1: Setup support for custom rules by running these commands as root:
cd /etc/httpd/conf.d
mkdir /etc/httpd/modsecurity.custom.d
cd /etc/httpd/modsecurity.custom.d
Step 2: Choose the URL you want to exclude, in the example below "/administrator" is used.
Add the below to the file /etc/httpd/modsecurity.custom.d/99_zzz_custom.conf
service httpd configtest
If you get no errors, restart apache:
Step 4: Restart apache
<LocationMatch /administrator>Step 3: check apaches config:
SecRuleEngine Off
</LocationMatch>
service httpd configtest
If you get no errors, restart apache:
Step 4: Restart apache
service httpd restart
Comments
0 comments
Please sign in to leave a comment.