The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable mod_security on a per-script basis.

Discussion in 'Security' started by rnawky, Feb 9, 2010.

  1. rnawky

    rnawky Member

    Joined:
    Jan 13, 2010
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Hello,

    Put this inside the virtualhost of the site you want to disable mod_security on it
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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
     
Loading...

Share This Page