I have about 10 VirtualHosts and I like to keep the error_logs separated. Recently, I need to also have the error_logs all combined for some mod_security scanning.
If I define 2 ErrorLogs for a test VirtualDomain, I notice that no error's are being logged. Pretty strange.
Is it possible to have a CustomLog play the role of an ErrorLog?
Or am I defining my 2 ErrorLogs incorrectly?
<VirtualHost 220.127.116.11:80> ServerName mydomain.net ServerAlias www.mydomain.net mydomain.net DocumentRoot /var/www/html/mydomain ServerAdmin firstname.lastname@example.org UseCanonicalName Off ErrorLog logs/mydomain.net-error_log ErrorLog logs/unified_modsecurity-error_log CustomLog logs/mydomain.net-access_log combined UserDir disabled UserDir enabled mydomainuser </VirtualHost>