Whenever we create new Virtual Hosts on our dev servers, we always have to manually specify separate access and error logs:
ErrorLog logs/mysite/dev1-error.log
CustomLog logs/mysite/dev1-access.log "common"
Is there anyway to make Apache automatically split up the logs instead of having to specify them every time?
Best Answer
I feel your pain, as a web developer I have probably over 200 vhosts in my local dev - I personally don't care about the logs & log them all to the main /var/log/apache...
However what I did do was to write a shell script to add/manage all my vhosts - all you need to do is to tweak it to write logs to wherever you like...
Hope it helps.
-sean