Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    20

    Default Disable mod_security on a per-script basis.

    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?

  2. #2
    Member ModServ's Avatar
    Join Date
    Oct 2006
    Location
    Egypt
    Posts
    228
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Hello,

    Put this inside the virtualhost of the site you want to disable mod_security on it
    <IfModule mod_security2.c>
    SecRuleEngine Off
    </IfModule>

    ModServ for Hosting & Web Services Solutions
    URL: http://www.modserv.com.eg

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by Me_388 View Post
    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

Similar Threads & Tags
Similar threads

  1. Disable Optimize website (mod_deflate) on a per user basis
    By brasoveanul in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-02-2010, 11:43 PM
  2. Disable mod_security on a per-script basis.
    By rnawky in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-09-2010, 09:59 PM
  3. a mod_security rule is breaking one script on one account
    By Metro2 in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 05-03-2008, 03:22 PM
  4. Disable FTP on a per account basis
    By nickp666 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-01-2005, 03:46 AM
  5. Disable the connection flood on a per user basis...
    By mpierre in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-21-2003, 02:57 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube