Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 66395 invoked from network); 24 Jan 2006 21:29:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jan 2006 21:29:09 -0000 Received: (qmail 45697 invoked by uid 500); 24 Jan 2006 21:28:59 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 45684 invoked by uid 500); 24 Jan 2006 21:28: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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 45673 invoked by uid 99); 24 Jan 2006 21:28:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 13:28:59 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [84.21.226.211] (HELO corpmail.itlegion.ru) (84.21.226.211) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Jan 2006 13:28:56 -0800 Received: (qmail 61606 invoked from network); 25 Jan 2006 00:29:47 +0300 Received: from unknown (HELO Artem) (192.168.0.12) by 84.21.226.211 with SMTP; 25 Jan 2006 00:29:47 +0300 X-AntiVirus: Checked by Dr.Web [version: 4.33, engine: 4.33.0.10250, virus records: 100600, updated: 24.00.2006] Message-ID: <00ff01c6212c$d891a8a0$0c00a8c0@Artem> From: "Artem Kuchin" To: References: <43D689FA.3010000@cs.yorku.ca> <43D68EFB.6010702@cs.yorku.ca> <43D693EB.7070800@cs.yorku.ca> Date: Wed, 25 Jan 2006 00:26:29 +0300 Organization: IT Legion MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] CGi warnings and error go into wrong error log X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi! I am running Apache/2.0.55 (FreeBSD) PHP/5.1.1 on FreeBSD 6.0-STABLE Apache compiles with threads (worker MPM). There i have a main config file (httpd.conf) with main error and main access log like this: User www Group www ServerAdmin info@itlegion.ru ServerName 84.21.226.213:80 ErrorLog /hosts/SYSTEM/httpd-error.log CustomLog /hosts/SYSTEM/httpd-access.log combined LogLevel debug Then virtual hosts are loaded: NameVirtualHost 84.21.226.213:80 Include etc/apache2/Includes/* Currently there is only one virtual host wich has its own access and error log: ErrorLog /hosts/meliora.ru/logs/errors CustomLog /hosts/meliora.ru/logs/access combined But the problem is that if error occures (or anything output into stderr) in CGI script it does not appear in virtual host error log, but it goes into main server error log. For example a simple script with error: #!/usr/bin/perl warn "It aint' workin'\n"; Outputs into virtual host error log only this: [Wed Jan 25 00:25:56 2006] [error] [client 85.140.105.134] Premature end of script headers: a.pl And the messages gotes into main server log in hosts/SYSTEM/httpd-error.log: It aint' workin' All the docs for Apache say that this should be this way. Any idea why this happens and how to avoid this? On apache 1.3 the warn message goes into virtual host error log and on another Apache/2.0.52 which is on FreebSD 5.3-STABLE and is NOT compiles with thread error logs go to the right virtual host log. Regards, Artem --------------------------------------------------------------------- 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