www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oren Nachman <nachm...@vipe.technion.ac.il>
Subject os-windows/7165: If ErrorDocument points to a CGI that can not be run Apache sends only headers
Date Wed, 31 Jan 2001 11:52:23 GMT

>Number:         7165
>Category:       os-windows
>Synopsis:       If ErrorDocument points to a CGI that can not be run Apache sends only
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Jan 31 04:00:03 PST 2001
>Originator:     nachmore@vipe.technion.ac.il
>Release:        2a8
Apache 2a8 compiled in Debug Mode with VC++ 6 on Windows 2000 SP1
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] (22003)The system cannot fin
d the path specified.  : couldn't create child process: 22003: c:/personal/site/
[Sun Jan 28 21:33:12 2001] [error] [client] 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
Set the ErorrDocument 404 to a cgi that doesn't run because of #!...

 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@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!     ]

View raw message