Help with LF_MODSEC

drsprite
Junior Member
Posts: 28
Joined: 21 Jun 2008, 18:39

Re: Help with LF_MODSEC

Post by drsprite »

Interestingly enough, your suggestion didn't work.

Code: Select all

SecAuditLogType Concurrent
That resulted in nothing in the audit_log. Is there another part of modsec I'm missing?

I've reverted back to my ErrorLog tee'ing which seems to be the best solution at this time.
ssh2site
Junior Member
Posts: 2
Joined: 09 Jan 2016, 08:55

Re: Help with LF_MODSEC

Post by ssh2site »

I know this is a very old thread, but it comes up in the top Google search results, so I will add my solution (for which I cannot recollect the source):

In my setup, every virtualhost / domain has their own access log and error log file.

For this setup to trap and block using Modsecurity+CSF, I specify the error log files as follows:

MODSEC_LOG = "/var/log/httpd/*error*log"

This scans all error log files generated by Apache.

Depending on the number of domains on your server, your server configuration, your server provider, etc, this *may* add a slight load / IO burden to your server. Test it. YMMV.
Post Reply