summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-02-26 17:49:47 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2017-02-26 18:03:10 -0500
commit57ab20ace504fdb6e0944ef6fa6e0ce35adc4446 (patch)
tree78182f852e556d651dd1c2652917681179ae1c79 /tests
parentd56957211212f9f774173febae1e005955be82a1 (diff)
downloadlighttpd1.4-57ab20ace504fdb6e0944ef6fa6e0ce35adc4446.tar.gz
lighttpd1.4-57ab20ace504fdb6e0944ef6fa6e0ce35adc4446.zip
[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
Diffstat (limited to 'tests')
-rw-r--r--tests/lighttpd.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index c2fae77d..6566d1c8 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -119,6 +119,7 @@ fastcgi.server = (
) ),
)
+cgi.local-redir = "enable"
cgi.assign = (
".pl" => env.PERL,
".cgi" => env.PERL,