[core] config opt to intercept dynamic handler err (fixes #974)
commit8f651a2b305f638ff2abec93a04a9ef2d967242a
authorGlenn Strauss <gstrauss@gluelogic.com>
Sat, 11 Feb 2017 19:35:28 +0000 (11 14:35 -0500)
committerGlenn Strauss <gstrauss@gluelogic.com>
Sat, 11 Feb 2017 19:59:15 +0000 (11 14:59 -0500)
tree6005da2ae8d4da25b467e476a7950c27ac11eee7
parentaa923e05f6af9a51681c1bc50fc840976e5536fd
[core] config opt to intercept dynamic handler err (fixes #974)

new directive server.error-intercept = [ "enable" | "disable" ]
to intercept 4xx and 5xx responses from dynamic handlers
(e.g. CGI, FastCGI, SCGI, proxy)

Intercepted HTTP error status are then handled by one of
  server.error-handler
  server.error-handler-404
  server.errorfile-prefix
(if configured)

Do not use server.error-intercept with locations handled by mod_webdav!

x-ref:
  "would like something similar to nginx proxy_intercept_errors"
  https://redmine.lighttpd.net/issues/974
src/base.h
src/configfile.c
src/connections.c