Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 27554 invoked from network); 23 Nov 2004 17:19:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Nov 2004 17:19:28 -0000 Received: (qmail 7929 invoked by uid 500); 23 Nov 2004 17:19:15 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 7860 invoked by uid 500); 23 Nov 2004 17:19:15 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 7843 invoked by uid 99); 23 Nov 2004 17:19:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [32.97.182.106] (HELO e6.ny.us.ibm.com) (32.97.182.106) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 23 Nov 2004 09:19:01 -0800 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e6.ny.us.ibm.com (8.12.10/8.12.9) with ESMTP id iANHIi0V702394 for ; Tue, 23 Nov 2004 12:18:44 -0500 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id iANHIhXb283834 for ; Tue, 23 Nov 2004 12:18:44 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11/8.12.11) with ESMTP id iANHIh5g020773 for ; Tue, 23 Nov 2004 12:18:43 -0500 Received: from [9.65.194.231] (sig-9-65-194-231.mts.ibm.com [9.65.194.231]) by d01av02.pok.ibm.com (8.12.11/8.12.11) with ESMTP id iANHIgVZ020723 for ; Tue, 23 Nov 2004 12:18:43 -0500 Message-ID: <41A370D3.6050101@wstoddard.com> Date: Tue, 23 Nov 2004 12:18:11 -0500 From: Bill Stoddard User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: mod_cgid, unix socket, ScriptSock directive References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jeff Trawick wrote: > On Sat, 20 Nov 2004 12:11:34 -0500, Jeff Trawick wrote: > >>The ScriptSock directive must be used when there are two instances of >>the server with same ServerRoot. If it is omitted, symptoms may >>include >> >>. wrong credentials for CGIs >>. CGIs stop working for one server when other server is terminated >> >>It should be easy to avoid this configuration requirement by appending >>parent pid to the name of the unix socket which is used *when user >>didn't specify ScriptSock*, though there is slight migration concern >>in case administrator relies on name of unix socket for other reason >>(e.g., to use its existence as knowledge that mod_cgid is ready for >>business). >> >>It should be easy to catch such a misconfiguration by adding the >>parent pid to the CGI request sent over the Unix socket, and fail the >>request (and log appropriate message) if parent pid is wrong. > > > code to check for the misconfiguration is small and is expected to be > fool-proof (independent of what the user does); also, no way the > change can result in stale unix sockets left around, unlike sticking > the pid in the filename > > see patch in attachment Definitely +1 in concept. This will save someone a -lot- of time if they don't have a clue why their CGIs are failing and this is the problem. Bill