Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 35173 invoked from network); 2 Aug 2006 19:10:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 19:10:04 -0000 Received: (qmail 55765 invoked by uid 500); 2 Aug 2006 19:09:50 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 55744 invoked by uid 500); 2 Aug 2006 19:09:50 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 55695 invoked by uid 99); 2 Aug 2006 19:09:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Aug 2006 12:09:50 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.35.237.31] (HELO rabies.blubbernet.com) (212.35.237.31) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Aug 2006 12:09:47 -0700 Received: from mike by rabies.blubbernet.com with local (Exim 4.50) id 1G8La2-0005q5-DK for users@httpd.apache.org; Wed, 02 Aug 2006 19:36:30 +0100 Date: Wed, 2 Aug 2006 19:36:30 +0100 From: Mike Cardwell To: users@httpd.apache.org Message-ID: <20060802183630.GA22402@localhost> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Using env vars to compliment logging X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N * on the Wed, Aug 02, 2006 at 08:42:32AM +0200, Boyle Owen wrote: > If I understood the OP correctly, he wants ever more fine-grained > control than that - he wants separate logs for different ServerAliases > *within* a VH... ("wildcard approach in a VirtualHost container"). > > That can't be done and you'd have to define a separate VH for each alias > (ie, expand the aliases into full VHs). As described in (1) above, the > better approach is to parse a global logfile later - you can put the > hostname into the LogFoprmat with %{Host}i. The way I would tackle this is: 1.) Update the LogFormat to include %{Host}i as described above 2.) Log to a pipe instead of to a file 3.) Write a script that the log will be piped to which handles the logic of choosing a path depending on the host, and writes to the correct log file. If you take this approach, be sure to secure it so a user can't for example symlink a log file to a system file such as /etc/passwd causing you to overwrite/corrupt it. I'm available for contract work if this is out of your reach. There is also http://jobs.perl.org/ which I have no affiliation to. Mike --------------------------------------------------------------------- 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