Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 35749 invoked by uid 500); 12 Feb 2003 08:15:59 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 35738 invoked from network); 12 Feb 2003 08:15:58 -0000 Received: from ns0b.swx.com (146.109.240.235) by daedalus.apache.org with SMTP; 12 Feb 2003 08:15:58 -0000 Received: from gate0b.unix.swx.ch (gate0b [192.168.252.145]) by ns0b.swx.com (8.12.6/8.12.6) with ESMTP id h1C8G9FY012392 for ; Wed, 12 Feb 2003 09:16:10 +0100 (MET) Received: from SOMEXEVS001.ex.ordersx.org (localhost [127.0.0.1]) by gate0b.unix.swx.ch (8.12.6/8.12.6) with ESMTP id h1C8G82M002627 for ; Wed, 12 Feb 2003 09:16:09 +0100 (MET) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Date: Wed, 12 Feb 2003 09:16:08 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] How to set a access_log file for each domain ? Importance: normal Priority: normal Thread-Index: AcLSaxqLoLHigjNbRtKlQbHFsP6rWgAAvR6A From: "Boyle Owen" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] How to set a access_log file for each domain ? 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 /home/abc123? By the way, if your logfiles are under the docroot, clients will be able to see them. Is that OK for you? Rgds, Owen Boyle >-----Original Message----- >From: Kevin Chan [mailto:kevinchan@trasy.com] >Sent: Mittwoch, 12. Februar 2003 08:48 >To: users@httpd.apache.org >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 > >ServerName www.123abc.com >ServerPath /home/123abc >DocumentRoot /home/123abc >ErrorLog /home/123abc/log/error_log >TransferLog /home/123abc/log/access_log > > >NameVirtualHost 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 > > >NameVirtualHost 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 > > > >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 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 > > 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=A1=A6s 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=A1=A6s company.=20 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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