Disable modsecurity For a Specific Directory January 10, 2020 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 ?