Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Modsecurity for IIS 7 Install Issue

Hostking
2013-07-05
2013-07-05
  • Hostking
    Hostking
    2013-07-05

    Hi Guys,

    Having some trouble getting modsecurity to work in IIS.

    I set SecDataDir to something like c:\temp and log locations like:

    SecAuditLogType Serial
    SecAuditLog c:\inetpub\log\modsec_audit.log

    But I still get errors:

    Syntax error in config file c:\inetpub\wwwroot\owasp_crs\modsecurity.conf, line 188: Command failed to execute (check file/folder permissions, syntax, etc.).

    and

    [client 1.1.1.1:51748] ModSecurity: collection_retrieve_ex: Unable to retrieve collection (name "ip", key "1.1.1.1:51748_6f12d3e386b7e287b8d79b4560e930de4f2bf383"). Use SecDataDir to define data directory first. [hostname "WEB01"] [uri "/index.php/favicon.ico"] [unique_id "18158513699705323575"]

    Any ideas or examples of what exactly the path should look like for those 2 fields.

    Thanks