From owner-freebsd-questions@FreeBSD.ORG Tue Jul 13 22:34:50 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAD8E16A4CE for ; Tue, 13 Jul 2004 22:34:50 +0000 (GMT) Received: from grog.secure-computing.net (grog.secure-computing.net [63.228.14.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 310DC43D49 for ; Tue, 13 Jul 2004 22:34:50 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from [192.168.1.100] (nat-server.secure-computing.net [63.228.14.245]) (authenticated bits=0)i6DMYLCr006127 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 13 Jul 2004 17:34:21 -0500 (CDT) (envelope-from ecrist@secure-computing.net) From: Eric Crist Organization: Secure Computing Networks To: freebsd-questions@freebsd.org Date: Tue, 13 Jul 2004 17:38:24 -0500 User-Agent: KMail/1.6.2 References: <1B36135783A3254A8C024188C0E3DFEC096435@dsl-main-66-18-201-230-edm.nucleus.com> In-Reply-To: <1B36135783A3254A8C024188C0E3DFEC096435@dsl-main-66-18-201-230-edm.nucleus.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407131738.24892.ecrist@secure-computing.net> X-Virus-Scanned: clamd / ClamAV version 0.72, clamav-milter version 0.72 on grog.secure-computing.net X-Virus-Status: Clean cc: Chris Burchell Subject: Re: Apache and split logs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ecrist@secure-computing.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 22:34:50 -0000 On Tuesday 13 July 2004 16:45, Chris Burchell wrote: > Is there any way (script / apache module / other) I can have the apache > access-log split into separate access logs for individual virtual sites > hosted on a FreeBSD box? > > -FreeBSD 4.10 > -Apache 1.3.31 > > Thanks, > Chris > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Yes. Simply set a log line in your VirtualHost directive. Here are mine as an example: ServerAdmin webmaster@e-u-a.net DocumentRoot /www/e-u-a.net/ DirectoryIndex index.htm index.html index.php ServerName www.e-u-a.net ErrorLog /var/log/eua_error.log CustomLog /var/log/eua_access.log common This puts the logfile for eua into eua_error.log and eua_access.log. You can put most directives listed in the config file into the VirtualHost directive. HTH -- Eric F Crist Keep your pecker hard and your powder dry, and the world WILL turn.