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!

easily update modsec.conf rulesets

Discussion in 'Security' started by Lyttek, Mar 15, 2007.

  1. Lyttek

    Lyttek Well-Known Member

    Jan 2, 2004
    Likes Received:
    Trophy Points:

    After browsing through umpteen posts and threads, I've not come to a solution that works yet on the following: has rulesets for mod_security that can be (at time, though not at the moment) obtained via wget. So, I'm trying to setup mod_security to use all conf files in a certain directory.

    /usr/local/apache/conf/modsec.conf contains a line:

    Include "/usr/local/apache/conf/modsec.user.conf"
    I'd like it to do something similar:

    Include "/usr/local/apache/conf/modsec.rules/*.conf"
    And that directory would contain rulesets such as rules.conf, exclude.conf, etc.

    Everything I've tried so far makes apache fail on restart. So, am I doing something completely wrong? Is this possible?

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