Disable modsecurity For a Specific Directory Leave a Comment / modsecurity / By cloud host SecRuleEngine Off must work . Have you tried to put SecRuleEngine inside Directory:<Directory /var/www/site/phpMA>SecRuleEngine Off</Directory>instead of LocationMatch ?