Project

General

Profile

Actions

Feature #7

closed

error-handler advanced usage

Added by glen almost 20 years ago. Updated almost 8 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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

Actions #1

Updated by jan almost 20 years ago

  • Status changed from New to Assigned
Actions #2

Updated by Anonymous about 19 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

Actions #3

Updated by stbuehler about 16 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

Actions #4

Updated by stbuehler about 16 years ago

  • Status changed from Fixed to Wontfix
Actions #5

Updated by gstrauss almost 8 years 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

Actions

Also available in: Atom