Project

General

Profile

Actions

Feature #2172

closed

Generate error document if backend returns error but no document.

Added by Olaf-van-der-Spek about 14 years ago. Updated almost 8 years ago.

Status:
Invalid
Priority:
Normal
Category:
-
Target version:
-
ASK QUESTIONS IN Forums:

Description

When a PHP FastCGI backend returns an error (for example, 500, internal server error), but no content, some browsers (Firefox) display an empty document without any indication of an error. This should be fixed in Firefox as well, but it'd also be nice if Lighttpd could generate the error document.

Actions #1

Updated by gstrauss about 8 years ago

  • Status changed from New to Invalid

Currently, lighttpd supports dynamic error handler only for 403 and 404 status.

If the dynamic handler fails, then the lighttpd sets con->mode = DIRECT and an error document is served via server.errorfile-prefix, if set.

If the dynamic handler runs successfully, then whatever status it generates and whatever content it generates is taken as-is, since the handler ran successfully, and we must assume that it produced exactly what it wanted to produce.

Actions #2

Updated by stbuehler almost 8 years ago

  • Target version deleted (1.4.x)
Actions

Also available in: Atom