====== Ubuntu - 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. It is also better to exclude admin backends of CMS applications like WordPress. To disable modsecurity for a complete VirtualHost place the following SecRuleEngine Off inside the section. For a particular directory: SecRuleEngine Off If you don't want to completely disable modsecurity, use the **SecRuleRemoveById** directive to remove a particular rule or rule chain by specifying its ID. SecRuleRemoveById 981173