Project

General

Profile

Feature #7

error-handler advanced usage

Added by glen over 12 years ago. Updated 9 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

i would like to specify redirect url for error-handler,
so the httpd would respond with Location: header to user.

second request is to support more error codes, perhaps any numeric code.
currently i need handler for 500, 403 and 503

History

#1 Updated by jan over 12 years ago

  • Status changed from New to Assigned

#2 Updated by Anonymous about 12 years ago

Would be great to use this functionality with mod_secdownload so you could specify a url or redirect for an invalid download (408 Request Timeout)... not too user friendly spitting back the 408 Request Timeout page.

-- t.lucas

#3 Updated by stbuehler about 9 years ago

  • Status changed from Assigned to Fixed
  • Resolution set to wontfix

server.errorfile-prefix is your friend, static content should be enough for that, or use a dynamic backend in the first place (mod_magnet).

you should not redirect errors, as that would hide them.

http://trac.lighttpd.net/trac/wiki/server.errorfile-prefixDetails

#4 Updated by stbuehler almost 9 years ago

  • Status changed from Fixed to Wontfix

#5 Updated by gstrauss 9 months ago

  • Description updated (diff)
  • Status changed from Wontfix to Fixed
  • Target version changed from 1.4.20 to 1.4.x

server.error-handler directive (dbdab5db) in lighttpd 1.4.40 allows for the requested behavior.
See dbdab5db and discussion in #2702 and #1828

Also available in: Atom