modsecurity:excluding_hosts_and_directories
Differences
This shows you the differences between two versions of the page.
modsecurity:excluding_hosts_and_directories [2016/10/14 14:14] – created peter | modsecurity:excluding_hosts_and_directories [2019/11/30 14:17] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ModSecurity - Excluding Hosts and Directories ====== | ||
- | |||
- | Sometimes it makes sense to exclude a particular directory or a domain name if it is running an application like phpMyAdmin as modsecurity and will block SQL queries. | ||
- | |||
- | To disable modsecurity for a complete VirtualHost place the following | ||
- | |||
- | <code apache> | ||
- | < | ||
- | SecRuleEngine Off | ||
- | </ | ||
- | </ | ||
- | |||
- | inside the < | ||
- | |||
- | For a particular directory: | ||
- | |||
- | <code apache> | ||
- | < | ||
- | < | ||
- | SecRuleEngine Off | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | If you don't want to completely disable modsecurity, | ||
- | |||
- | <code apache> | ||
- | < | ||
- | < | ||
- | SecRuleRemoveById 981173 | ||
- | </ | ||
- | </ | ||
- | </ | ||
modsecurity/excluding_hosts_and_directories.1476454455.txt.gz · Last modified: 2020/07/15 09:30 (external edit)