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 371e1bf723 [mod_extforward] support Forwarded HTTP Extension (#2703)
enable with, e.g.:
extforward.headers = ( "Forwarded" )
or
extforward.headers = ( "Forwarded", "X-Forwarded-For" )
or
extforward.headers = ( "Forwarded", "X-Forwarded-For", "Forwarded-For" )

The default remains:
extforward.headers = ( "X-Forwarded-For", "Forwarded-For" )

Support for "Forwarded" is not enabled by default since intermediate
proxies might not be aware of Forwarded, and might therefore pass
spoofed Forwarded header received from client.

extforward.params = ( # overwrite "Host" with Forwarded value
                      #"host" => 1
                      # set REMOTE_USER with Forwarded value
                      #"remote_user" => 1
                    )
Note: be cautious configuring trusted proxies if enabling these options
since Forwarded header may be spoofed and passed along indescriminantly
by proxies which do not handle Forwarded.

To remove "Forwarded" from incoming requests, do not enable these
options and instead use mod_setenv to clear the request header:
  setenv.set-request-header = ( "Forwarded" => "" )

Other proxy-related headers which admin might evaluate to keep or clear:
  setenv.set-request-header = ( "X-Forwarded-For" => "",
                                "X-Forwarded-By" => "",
                                "X-Forwarded-Server" => "",
                                "X-Origin-IP" => "",
                                "Via" => "",
                                #...
                              )

x-ref:
  "Forwarded HTTP Extension"
  https://tools.ietf.org/html/rfc7239
  "Forward authenticated user to proxied requests"
  https://redmine.lighttpd.net/issues/2703
6 years ago
..
docroot [tests] remove unused file depending on CGI.pm 6 years ago
404-handler.conf [core] server.error-handler new directive for error pages (fixes #2702) 7 years ago
CMakeLists.txt [mod_scgi] tests/mod-scgi.t unit tests 6 years ago
LightyTest.pm [tests] reduce time waiting for backends to start 6 years ago
Makefile.am [mod_scgi] tests/mod-scgi.t unit tests 6 years ago
SConscript [mod_scgi] tests/mod-scgi.t unit tests 6 years ago
bug-06.conf comment out auth.backend.ldap.* in tests/*.conf 7 years ago
bug-12.conf comment out auth.backend.ldap.* in tests/*.conf 7 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 16 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) 8 years ago
core-var-include.t - change s/// separator that it doesn't confuse vim 16 years ago
core.t - change s/// separator that it doesn't confuse vim 16 years ago
fastcgi-10.conf comment out auth.backend.ldap.* in tests/*.conf 7 years ago
fastcgi-13.conf comment out auth.backend.ldap.* in tests/*.conf 7 years ago
fastcgi-auth.conf comment out auth.backend.ldap.* in tests/*.conf 7 years ago
fastcgi-responder.conf comment out auth.backend.ldap.* in tests/*.conf 7 years ago
fcgi-auth.c [tests] test coverage for issues (#321, #322) 7 years ago
fcgi-responder.c [tests] FCGI_Finish() final request before exit 6 years ago
lighttpd.conf [mod_cgi] cgi.local-redir = [enable|disable] (#2108, #2793) 6 years ago
lighttpd.htpasswd [mod_auth] skip blank lines and comment lines (fixes #2327) 7 years ago
lighttpd.user moved everything below trunk/ and added branches/ and tags/ 19 years ago
lowercase.conf load mod_auth & mod_authn_file in sample/test.conf 7 years ago
lowercase.t - change s/// separator that it doesn't confuse vim 16 years ago
mod-access.t [mod_access] new directive url.access-allow (fixes #1421) 7 years ago
mod-auth.t [mod_auth] structured data, register auth schemes 7 years ago
mod-cgi.t [core] consolidate dynamic handler response parse 6 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-evhost.conf [mod_evhost] mod-evhost.t tests (#1194) 7 years ago
mod-evhost.t [mod_evhost] fix an incorrect error trace 7 years ago
mod-extforward.conf [mod_extforward] support Forwarded HTTP Extension (#2703) 6 years ago
mod-extforward.t [mod_extforward] support Forwarded HTTP Extension (#2703) 6 years ago
mod-fastcgi.t [tests] reduce time waiting for backends to start 6 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 16 years ago
mod-rewrite.t [tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups 8 years ago
mod-scgi.t [tests] reduce time waiting for backends to start 6 years ago
mod-secdownload.t [mod_secdownload] new directives modify hash path (fixes #646, fixes #1904) 6 years ago
mod-setenv.t [mod_setenv] directives to overwrite/remove hdrs (fixes #650, fixes #2295) 6 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 [mod_ssi] more flexible quoting (fixes #1768) 7 years ago
mod-userdir.t [mod_user] add test cases to check handling of encoded ~ as %7E (#2124) 10 years ago
prepare.sh [mod_evhost] mod-evhost.t tests (#1194) 7 years ago
proxy.conf comment out auth.backend.ldap.* in tests/*.conf 7 years ago
request.t [core] support Expect: 100-continue with HTTP/1.1 (fixes #377, #1017, #1953, #2438) 6 years ago
run-tests.pl Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105) 14 years ago
scgi-responder.c [mod_scgi] tests/mod-scgi.t unit tests 6 years ago
scgi-responder.conf [mod_scgi] tests/mod-scgi.t unit tests 6 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