Forum Moderators: phranque

Message Too Old, No Replies

vhost_alias ErrorLog

Need something like VirtualErrorLog

         

plasma

6:02 pm on Nov 22, 2003 (gmt 0)

10+ Year Member



Hi all,

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?

BjarneDM

2:49 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



you just enter all of the log settings in the <VirtualHost> like this:
<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>

plasma

3:34 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



Thanks for your answer.

However I need a solution for mod_vhost_alias. I want a seperate ErrorLog not only via VirtualHost.
I want it seperated for each customer.

We have only 1 VirtualHost for hundreds of customers (mod_vhost_alias).