httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] How to set a access_log file for each domain ?
Date Wed, 12 Feb 2003 08:16:08 GMT
You don't have a TransferLog directive in the xyz and efg VHs...

Note that the directory must exist for the logfiles - i.e. if you have:

	TransferLog /home/123abc/log/access_log

then the directory /home/123abc/log must exist before you start apache.
Apache can create the file "access_log" but it doesn't build the
directory tree for you.

Also, the apache user (defined by "User") must have write permissions in
that directory. Since you seem to be logging to a directory under the
document root, this might be your problem. Who owns the directory

By the way, if your logfiles are under the docroot, clients will be able
to see them. Is that OK for you?

Owen Boyle

>-----Original Message-----
>From: Kevin Chan []
>Sent: Mittwoch, 12. Februar 2003 08:48
>Subject: Re: [users@httpd] How to set a access_log file for
>each domain ?
>Dear Dietmar, Boyle and all:
>I add the ErrorLog and TransferLog as below:
>NameVirtualHost 210.169.36.XXX
><VirtualHost 210.169.36.XXX>
>ServerPath /home/123abc
>DocumentRoot /home/123abc
>ErrorLog /home/123abc/log/error_log
>TransferLog /home/123abc/log/access_log
>NameVirtualHost 210.169.36.XXX
><VirtualHost 210.169.36.XXX>
>ServerPath /home/xyz123
>DocumentRoot /home/xyz123
>ErrorLog /home/xyz123/log/error_log
>Setenv VLOG /home/xyz123/log/logs
>NameVirtualHost 210.169.36.XXX
><VirtualHost 210.169.36.XXX>
>ServerPath /home/efg123
>DocumentRoot /home/efg123
>ErrorLog /home/efg123/log/error_log
>Setenv VLOG /home/efg123/log/logs
>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,
>> 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.
>Owen Boyle
>The official User-To-User support forum of the Apache HTTP
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender’s company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender’s company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message