You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd1.4/tests
Glenn Strauss dbdab5dbc9 [core] server.error-handler new directive for error pages (fixes #2702)
server.error-handler preserves HTTP status error code when error page
is static, and allows dynamic handlers to change HTTP status code
when error page is provided by dynamic handler.  server.error-handler
intercepts all HTTP status codes >= 400 except when the content is
generated by a dynamic handler (cgi, ssi, fastcgi, scgi, proxy, lua).
The request method is unconditionally changed to GET for the request
to service the error handler, and the original request method is
later restored (for logging purposes).  request body from the
original request, if present, is discarded.

server.error-handler is somewhat similar to server.error-handler-404,
but server.error-handler-404 is now deprecated, intercepts only 404
and 403 HTTP status codes, and returns 200 OK for static error pages,
a source of confusion for some admins.  On the other hand, the new
server.error-handler, when set, will intercept all HTTP status error
codes >= 400.  server.error-handler takes precedence over
server.error-handler-404 when both are set.

NOTE: a major difference between server.error-handler and the
now-deprecated server.error-handler-404 is that the values of the
non-standard CGI environment variables REQUEST_URI and REDIRECT_URI
have been swapped.  Since REDIRECT_STATUS is the original HTTP
status code, REDIRECT_URI is now the original request, and REQUEST_URI
is the current request (e.g. the URI/URL to the error handler).
The prior behavior -- which reversed REQUEST_URI and REDIRECT_URI values
from those described above -- is preserved for server.error-handler-404.

Additionally, REDIRECT_STATUS is now available to mod_magnet, which
continues to have access to request.uri and request.orig_uri.

See further discussion at https://redmine.lighttpd.net/issues/2702
and https://redmine.lighttpd.net/issues/1828

github: closes #36
7 years ago
..
docroot [core] server.error-handler new directive for error pages (fixes #2702) 7 years ago
404-handler.conf [core] server.error-handler new directive for error pages (fixes #2702) 7 years ago
CMakeLists.txt [cmake] lowercase commands, whitespace cleanup, remove clutter in else(...), endif(...), endforeach(...) 8 years ago
LightyTest.pm [tests] do not half-close socket before having received the response (fixes #2688) 7 years ago
Makefile.am add some until now missing files to dist tarball 8 years ago
SConscript [scons] various improvements 8 years ago
bug-06.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
bug-12.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
cachable.t parse If-None-Match for ETag validation (fixes #2578) 8 years ago
cleanup.sh [scons] various improvements 8 years ago
condition.conf [core] never evaluate else branches until the previous branches are aready (fixes #2598) 7 years ago
core-404-handler.t [core] server.error-handler new directive for error pages (fixes #2702) 7 years ago
core-condition.t [core] never evaluate else branches until the previous branches are aready (fixes #2598) 7 years ago
core-keepalive.t - change s/// separator that it doesn't confuse vim 15 years ago
core-request.t fix SQL injection / host name validation (thx Jann Horn) 9 years ago
core-response.t [core] encode path with ENCODING_REL_URI in redirect to directory (fixes #2661, thx gstrauss) 7 years ago
core-var-include.t - change s/// separator that it doesn't confuse vim 15 years ago
core.t - change s/// separator that it doesn't confuse vim 15 years ago
fastcgi-10.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
fastcgi-13.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
fastcgi-auth.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
fastcgi-responder.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
fcgi-auth.c Fix non-ANSI function declarations. 11 years ago
fcgi-responder.c Fix non-ANSI function declarations. 11 years ago
lighttpd.conf [mod_secdownload] add required algorithm option; old behaviour available as "md5", new options "hmac-sha1" and "hmac-sha256" 7 years ago
lighttpd.htpasswd [tests] test apr-md5 in mod-auth.t 7 years ago
lighttpd.user moved everything below trunk/ and added branches/ and tags/ 18 years ago
lowercase.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
lowercase.t - change s/// separator that it doesn't confuse vim 15 years ago
mod-access.t - change s/// separator that it doesn't confuse vim 15 years ago
mod-auth.t [tests] test apr-md5 in mod-auth.t 7 years ago
mod-cgi.t - change s/// separator that it doesn't confuse vim 15 years ago
mod-compress.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
mod-compress.t mod_compress: match partial+full content-type (fixes #1552) 14 years ago
mod-extforward.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
mod-extforward.t - support chained proxies in mod_extforward (#1528) 15 years ago
mod-fastcgi.t [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
mod-proxy.t [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
mod-redirect.t - change s/// separator that it doesn't confuse vim 15 years ago
mod-rewrite.t [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
mod-secdownload.t [mod_secdownload] add required algorithm option; old behaviour available as "md5", new options "hmac-sha1" and "hmac-sha256" 7 years ago
mod-setenv.t - change s/// separator that it doesn't confuse vim 15 years ago
mod-simplevhost.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
mod-simplevhost.t [tests] add mod_simplevhost tests 10 years ago
mod-ssi.t - change s/// separator that it doesn't confuse vim 15 years ago
mod-userdir.t [mod_user] add test cases to check handling of encoded ~ as %7E (#2124) 10 years ago
prepare.sh [core] encode path with ENCODING_REL_URI in redirect to directory (fixes #2661, thx gstrauss) 7 years ago
proxy.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
request.t [tests] add cleanup.sh to cmake test runs, reset SLOWREQUEST in request.t 9 years ago
run-tests.pl Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105) 14 years ago
symlink.t mark testcase executable 15 years ago
var-include-sub.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
var-include.conf [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
wrapper.sh Add static-file.disable-pathinfo option to prevent handling of urls like .../secret.php/image.jpg as static file 12 years ago