Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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?
     
  2. ModServ

    ModServ Well-Known Member

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

    Put this inside the virtualhost of the site you want to disable mod_security on it
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice