Glenn Strauss
362ccedc41
[mod_indexfile] use config_plugin_values_init()
2020-05-23 17:59:29 -04:00
Glenn Strauss
07517ff30a
[tests] some test config cleanup
...
including limiting use of php in tests to mod-fastcgi.t
2018-12-10 22:36:23 -05:00
Glenn Strauss
f03e5e239d
[tests] t/test_keyvalue
...
create t/test_keyvalue to replace sparse tests in
tests/mod-redirect.t and tests/mod-rewrite.t
remove tests/mod-redirect.t and tests/mod-rewrite.t
2018-12-10 22:36:23 -05:00
Glenn Strauss
57ab20ace5
[mod_cgi] cgi.local-redir = [enable|disable] ( #2108 , #2793 )
...
new directive cgi.local-redir = [enable|disable]
*disable* RFC3875 6.2.2 local-redir by default.
(behavior change from when local-redir support added in lighttpd 1.4.40)
The reason for this behavior change is that CGI local-redir support
(RFC3875 6.2.2) is an optimization. Absence of support may result in
additional latency in servicing a request due the additional round-trip
to the client, but that was the prior behavior (before lighttpd 1.4.40)
and is the behavior of web servers which do not support CGI local-redir.
However, enabling CGI local-redir by default may result in broken links
in the case where a user config (unaware of CGI local-redir behavior)
returns HTML pages containing *relative* paths (not root-relative paths)
which are relative to the location of the local-redir target document,
and the local-redir target document is located at a different URL-path
from the original CGI request.
x-ref:
RFC3875 CGI 1.1 specification section 6.2.2 Local Redirect Response
http://www.ietf.org/rfc/rfc3875
"CGI local redirect not implemented correctly"
https://redmine.lighttpd.net/issues/2108
"1.4.40 regression: broken redirect (using Location) between url.rewrite-once URLs"
https://redmine.lighttpd.net/issues/2793
2017-02-26 18:03:10 -05:00
Glenn Strauss
afce434e0b
[mod_secdownload] new directives modify hash path ( fixes #646 , fixes #1904 )
...
secdownload.path-segments = <number>
include only given number of path segments in hash digest calculation
secdownload.hash-querystr = "enable" | "disable"
include the query string in the hash digest calculation
x-ref:
"secdownload.path_elements support"
https://redmine.lighttpd.net/issues/646
"mod_secdownload option to include url GET parameters in md5"
https://redmine.lighttpd.net/issues/1904
2017-01-31 14:36:15 -05:00
Glenn Strauss
4d92366ab2
[mod_setenv] directives to overwrite/remove hdrs ( fixes #650 , fixes #2295 )
...
directives to set value, rather than append values to headers, env
setenv.set-request-header
setenv.set-response-header
setenv.set-environment
These directives take precedence over the setenv.add-* counterparts
Set a blank value for request or response header to remove the header
(blank value in environment will be set as the value; not removed)
setenv.*-environment is now deferred to handle_request_env hook.
setenv.*-response-header is now processed in handle_response_start hook.
x-ref:
"setenv.add-or-replace-response-header"
https://redmine.lighttpd.net/issues/650
"set-request-header or remove-request-header support for mod_setenv"
https://redmine.lighttpd.net/issues/2295
2017-01-31 14:36:15 -05:00
Glenn Strauss
f664e77909
load mod_auth & mod_authn_file in sample/test.conf
2016-11-29 22:32:28 -05:00
Glenn Strauss
ce7d040bf3
[mod_access] new directive url.access-allow ( fixes #1421 )
...
url.access-allow is list of allowed url suffixes (e.g. file extensions)
If url.access-allow has been set, then deny any URL that does not match
the explicitly listed suffixes.
(thx japc)
x-ref:
"access_allow directive for lighttpd"
https://redmine.lighttpd.net/issues/1421
2016-07-13 04:12:08 -04:00
Stefan Bühler
bfaa48260a
[mod_secdownload] add required algorithm option; old behaviour available as "md5", new options "hmac-sha1" and "hmac-sha256"
...
Differential Revision: https://review.lighttpd.net/D7
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3054 152afb58-edef-0310-8abb-c4023f1b3aa9
2015-11-22 22:22:22 +00:00
Stefan Bühler
87c5ec9651
[tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups
...
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3019 152afb58-edef-0310-8abb-c4023f1b3aa9
2015-08-22 20:51:08 +00:00
Stefan Bühler
adfa06de99
[tests] improve valgrind and strace TRACEME, disable condition logging in normal configs
...
- condition logging is way too noisy and rarely useful
- increate timeout to wait for port bind; if the process dies we fail
early anyway
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2978 152afb58-edef-0310-8abb-c4023f1b3aa9
2015-02-08 19:10:41 +00:00
Stefan Bühler
7187271fb6
[auth] Add "AUTH_TYPE" environment (for *cgi), remove fastcgi specific workaround, add fastcgi test case ( fixes #889 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2833 152afb58-edef-0310-8abb-c4023f1b3aa9
2012-04-19 13:02:11 +00:00
Stefan Bühler
e05f1b3eec
Add static-file.disable-pathinfo option to prevent handling of urls like .../secret.php/image.jpg as static file
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2803 152afb58-edef-0310-8abb-c4023f1b3aa9
2011-08-30 22:13:59 +00:00
Stefan Bühler
8c83976dbe
mod_fastcgi: Add "X-Sendfile2" - supporting multiple ranged files ( fixes #2008 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2651 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-14 17:32:38 +00:00
Peter Colberg
8b6dae4139
Add TLS servername indication (SNI) support ( fixes #386 , thx Peter Colberg <peter@colberg.org>)
...
* This patch may "break" some configs, if they do stupid things. Like setting
ssl.pemfile to a not existing file in a "non-socket/non-ssl" block.
Fix them! :)
From: Peter Colberg <peter@colberg.org>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2648 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-14 13:39:59 +00:00
Stefan Bühler
83145e8ba6
mod_rewrite: add url.rewrite-[repeat-]if-not-file to rewrite if file doesn't exist or is not a regular file ( fixes #985 , thx lucas aerbeydt)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2647 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-12 21:49:09 +00:00
Stefan Bühler
b3ba9f0fb9
tests: use breakage log
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2555 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-01 16:16:40 +00:00
Stefan Bühler
b2108c436c
Remove X-Sendfile-Range feature; it will be replaced with something more powerful ( #2005 , #2008 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2542 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-19 19:06:39 +00:00
Stefan Bühler
ad1e80e5af
Add X-Sendfile-Range feature ( fixes #2005 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2531 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-11 12:35:00 +00:00
Stefan Bühler
fdcb6f60f4
Allow mod_compress to return 304 (Not Modified); compress ignores the static-file.etags option.( fixes #1884 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2384 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-04 10:27:42 +00:00
Stefan Bühler
cbd40dc44b
[tests] Remove pidfile from test system
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2242 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-29 21:22:13 +00:00
Marcus Rückert
ea872bea37
- added testcase for bug #1322
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1968 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-27 21:48:53 +00:00
Marcus Rückert
b8df99f3db
- a few more whitespace cleanups
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1374 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-05 00:09:51 +00:00
Jan Kneschke
3521657508
merged [1105]
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1283 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 11:11:30 +00:00
Marcus Rückert
657a024d53
- backport symlink patch in hard version to 1.4.11
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1281 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 11:00:02 +00:00
Jan Kneschke
9dbf12d8ed
- fixed test for max-request-size on 64bit platforms
...
- fixed counting the skipped tests in mod-fastcgi.t
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1039 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-09 13:36:57 +00:00
Jan Kneschke
a77f7a90d8
the range-request options was not handled at all, added test case
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@781 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-10-05 10:40:00 +00:00
Jan Kneschke
51d6e2abf0
fixed output of non-cached compressed content and added test-cases
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@779 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-10-04 09:25:29 +00:00
Xuefer
9be1abfb85
an unset header is now treat as empty_string "" to make the conditional logic correct.
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@757 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-29 14:42:35 +00:00
Jan Kneschke
4005e69bbf
added a check for $HTTP["referer"] == ""
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@753 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-29 13:30:25 +00:00
Xuefer
14754f33f4
fix and add testcase for #255
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@716 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-20 05:54:19 +00:00
Jan Kneschke
e2cf5d3094
tests for htpasswd + md5 and referer matching in conditionals
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@711 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-16 12:44:29 +00:00
Xuefer
4846d4ed80
the lost part of [240]
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@657 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-31 13:57:09 +00:00
Jan Kneschke
7988661090
added tests for keep-alive and setenv and passed a ARRAY ref instead of a HASH ref
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@654 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-31 12:55:44 +00:00
Jan Kneschke
7d4f64c476
don't set a global uri-prefix and added checks ( fixes #235 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@641 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-29 12:26:25 +00:00
Jan Kneschke
15b0109071
run tests in build root (merged #228 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@640 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-29 12:08:00 +00:00
Jan Kneschke
9359e21514
added tests for mod-secdownload
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@623 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-25 20:09:14 +00:00
Jan Kneschke
06becfacfc
check that the anti deeplinking via referer matches work
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@617 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-24 07:22:03 +00:00
Jan Kneschke
3af5f02398
added a basic test for mod-ssi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@612 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-23 07:55:19 +00:00
Jan Kneschke
75c3a8393a
added include_shell option to configfiles (merged the rest of the trunk changesets)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@530 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-09 06:42:33 +00:00
Jan Kneschke
eaa13584b5
added tests for /prefix + PATH_INFO on check-local = disable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@479 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-07-28 10:24:49 +00:00
Jan Kneschke
510b536669
replaced IP address for fastcgi.server to localhost
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@349 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-05-08 06:22:55 +00:00
Jan Kneschke
6925cdcf49
removed duplicate variable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@290 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-04-20 16:35:34 +00:00
Jan Kneschke
a9f7841379
2 rewrite tests
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@92 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-04 18:38:46 +00:00
Jan Kneschke
b41aa700ab
check that conditionals and simple-vhost work together
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@91 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-04 13:10:35 +00:00
Jan Kneschke
6bf51546c7
converted all tests to run-tests.pl
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@56 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-28 17:08:05 +00:00
Jan Kneschke
bcdc6a3bbc
moved everything below trunk/ and added branches/ and tags/
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-02-20 14:27:00 +00:00