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.

easily update modsec.conf rulesets

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

  1. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Greetings!

    After browsing through umpteen posts and threads, I've not come to a solution that works yet on the following:

    www.gotroot.com 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:

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

    Code:
    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?
     
Loading...

Share This Page