You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Oren Nachman <na...@vipe.technion.ac.il> on 2001/01/31 12:52:23 UTC
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 <ap...@Apache.Org> 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! ]