Forum Moderators: phranque
any idea how I can have seperate error logs in one virtual host?
We use vhost_alias since 2 years or so, and everything works fine, except that each site uses the same error log. There isn't a VirtualErrorLog directive and the docs say:
Unfortunately, no similar technique is available for the error log, so you must choose between mixing all virtual hosts in the same error log and using one error log per virtual host.
So, what can I do about it?
ErrorLog doesnt work in .htaccess.
Can I do something with mod_rewrite?
Would it help to pipe it to a process that splits it?
<VirtualHost *>
AccessFileName .htaccess
ErrorLog "/Volumes/brugere/bjarnema/Mozilla/log/error_log"
LogLevel warn
CustomLog "/Volumes/brugere/bjarnema/Mozilla/log/access_log" common
#CustomLog "/Volumes/brugere/bjarnema/Mozilla/log/referer_log" referer
CustomLog "/Volumes/brugere/bjarnema/Mozilla/log/agent_log" agent
#CustomLog "/Volumes/brugere/bjarnema/Mozilla/log/access_log" combined
</VirtualHost>