httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Chan" <kevinc...@trasy.com>
Subject Re: [users@httpd] How to set a access_log file for each domain ?
Date Wed, 12 Feb 2003 07:47:53 GMT
Dear Dietmar, Boyle and all:

I add the ErrorLog and TransferLog as below:

NameVirtualHost 210.169.36.XXX
<VirtualHost 210.169.36.XXX>
ServerName www.123abc.com
ServerPath /home/123abc
DocumentRoot /home/123abc
ErrorLog /home/123abc/log/error_log
TransferLog /home/123abc/log/access_log
</VirtualHost>

NameVirtualHost 210.169.36.XXX
<VirtualHost 210.169.36.XXX>
ServerName www.xyz123.com
ServerPath /home/xyz123
DocumentRoot /home/xyz123
ErrorLog /home/xyz123/log/error_log
Setenv VLOG /home/xyz123/log/logs
</VirtualHost>

NameVirtualHost 210.169.36.XXX
<VirtualHost 210.169.36.XXX>
ServerName www.efg123.com
ServerPath /home/efg123
DocumentRoot /home/efg123
ErrorLog /home/efg123/log/error_log
Setenv VLOG /home/efg123/log/logs
</VirtualHost>


Now, the access_log & error_log 's PATH are changed.  But I focus on another
problem -  all 3 domain's access_log & error_log only will create in same
log directory (e.g. /home/xyz123/log/).

Please help if you know how to solve this problem - How to set 3 domains
generate their own log files to their own directory ?

Thanks and regards,
Kevin

> Boyle Owen Wrote:
>
>I have running 3 domain in same apache server.  They are now
>using same log file " /var/log/httpd/ ",  how can I change them to generate
>their own log files (e.g. access_log) ?

Read the docs for TransferLog.. As it says on the "context" line, this
directive can be used inside a VH.

Rgds,
Owen Boyle


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message