Michael Schröpl: Premature end of script headers..

Beitrag lesen

Hi Henryk,

Insofern ergibt eine Referenz auf einen fehlenden Interpreter
eher einen "Error 500" als einen unvollständigen HTTP-Header.
Interessant. Und welchen HTTP-Status hat dann letzteres?

ups - Du hast natürlich völlig recht.

Nur im Apache-error_log kann man beide Fälle unterscheiden:

Das ist der fehlende Interpreter ...
[Wed Jan 23 02:06:22 2002] [error] (2)No such file or directory: exec of /export/home/ms/public_html/x.pl failed
[Wed Jan 23 02:06:22 2002] [error] [client 153.46.90.209] Premature end of script headers: /export/home/ms/public_html/x.pl

... und das der vom Skript selbst ausgegebene kaputte HTTP-Header
[Wed Jan 23 02:07:12 2002] [error] [client 153.46.90.209] malformed header from script. Bad header=DOCUMENT_ROOT=/usr/local/apach: /export/home/ms/public_html/y.pl

im Browser sieht beides gleich aus:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, ... and inform them of the time
the error occurred, and anything you might have done that may have caused
the error.

More information about this error may be available in the server error log.

Apache/1.3.22 Server at tkschwarz Port 80

Sorry, verhaspelt ... :-\        Michael