Disable mod_security on a per-script basis.

rnawky

Member
Jan 13, 2010
20
0
51
mod_security is giving me some problems with bugzilla.

How can I disable mod_security with .htaccess files?

I tried using
Code:
SecFilterEngine Off
But it results in a 500 Internal Server Error.

Any ideas?
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Put this inside the virtualhost of the site you want to disable mod_security on it
Code:
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
Adding to the above suggestion as posted by Me_388, please ensure to reference the following documentation that details how to use per-virtual-host includes in the Apache configuration to safely add custom directives to "httpd.conf" and have the changes retained: Adding Custom Directives to httpd.conf - Changes Contained within a VirtualHost Directive