Return-Path: Delivered-To: apmail-apache-bugdb-archive@apache.org Received: (qmail 3621 invoked by uid 500); 31 Jan 2001 12:00:27 -0000 Mailing-List: contact apache-bugdb-help@apache.org; run by ezmlm Precedence: bulk Reply-To: apache-bugdb@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-bugdb@apache.org Received: (qmail 2504 invoked by uid 501); 31 Jan 2001 12:00:05 -0000 Resent-Date: 31 Jan 2001 12:00:05 -0000 Resent-Message-ID: <20010131120005.2503.qmail@apache.org> Resent-From: submit@bugz.apache.org (GNATS Filer) Resent-To: apache-bugdb@apache.org Resent-Cc: apache-bugdb@apache.org Resent-Reply-To: submit@bugz.apache.org, nachmore@vipe.technion.ac.il Received: (qmail 89537 invoked by uid 501); 31 Jan 2001 11:52:23 -0000 Message-Id: <20010131115223.89534.qmail@apache.org> Date: 31 Jan 2001 11:52:23 -0000 From: Oren Nachman Reply-To: nachmore@vipe.technion.ac.il To: submit@bugz.apache.org X-Send-Pr-Version: 3.110 Subject: os-windows/7165: If ErrorDocument points to a CGI that can not be run Apache sends only headers >Number: 7165 >Category: os-windows >Synopsis: If ErrorDocument points to a CGI that can not be run Apache sends only headers >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Jan 31 04:00:03 PST 2001 >Closed-Date: >Last-Modified: >Originator: nachmore@vipe.technion.ac.il >Release: 2a8 >Organization: apache >Environment: Apache 2a8 compiled in Debug Mode with VC++ 6 on Windows 2000 SP1 >Description: My ErorrDocument 404 handler points to a cgi script. If the CGI script can not be spawned (invalid #!) the error log writes: [Sun Jan 28 21:33:12 2001] [error] [client 0.0.0.0] (22003)The system cannot fin d the path specified. : couldn't create child process: 22003: c:/personal/site/ cgi-bin/error404.cgi [Sun Jan 28 21:33:12 2001] [error] [client 0.0.0.0] couldn't spawn child process : c:/personal/site/cgi-bin/error404.cgi though apache returns the following answer: HTTP/1.1 404 Not Found Date: Mon, 29 Jan 2001 05:30:45 GMT Server: Apache/2.0a8 (Win32) Content-Length: 0 Connection: close Content-Type: text/plain; charset=ISO-8859-1 This causes havoc with Browsers - IE displays DNS error (as if it can't connect to the site). Netscape does a little better - it reports 404 - Not found and then hangs seemingly waiting for something. Btw, if you try and run the CGI defined in the ErorrDocument Apache retyurns the proper 500 page >How-To-Repeat: Set the ErorrDocument 404 to a cgi that doesn't run because of #!... >Fix: >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]