mod_security logs not rotated if awstats=1

Version 1.514


If you're running mod_security, and need the log rotation of the logs in: /var/log/modsec_audit a bug where awstats=1 would prevent those logs from being rotated, because, DA only rotates the logs to the .1 files if only webalizer is used, as it states a live log shouldn't be used. But we changed it to use live logs with awstats anyway, so the apache log rotation didn't happen, which is where the mod_security log rotation function was called. Fix was to simply move the function call out of the apache log rotation function. It still requires rotation=1 though.

Interested to try DirectAdmin? Get a 30-day Free Trial!