summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorfbrosson <fbrosson@users.noreply.github.com>2016-03-26 11:14:21 +0000
committerStefan Bühler <stbuehler@web.de>2016-03-26 11:14:21 +0000
commita579e7ffc0d524886cf5c65c97284c2b2c3d958a (patch)
tree7c55896ec51931033e82b22a7be2cf29c3153c95 /NEWS
parentcc81f1f9dc68327e8bb4a7cecf6a26fcc3054b49 (diff)
downloadlighttpd-git-a579e7ffc0d524886cf5c65c97284c2b2c3d958a.tar.gz
[mod_ssi] Add SSI vars SCRIPT_{URI,URL} and REQUEST_SCHEME (fixes #2721)
This is a proposal to add to lighttpd the famous SSI variables SCRIPT_URI and SCRIPT_URL (known to Apache users), as well as a bonus ENV variable called REQUEST_SCHEME. SCRIPT_URI and SCRIPT_URL will be available as SSI variables from within documents handled by mod_ssi. They can be used like any other SSI var with the "#echo var" command: <!--#echo var="SCRIPT_URI"--> <!--#echo var="SCRIPT_URL"--> Webmasters willing to display links to the W3C Validator will be able to use: <a href="http://validator.w3.org/check?uri=<!--#echo var="SCRIPT_URI"-->">…</a> instead of the generic http://validator.w3.org/check?uri=referer link which does not work on some (most?) browsers which do not send referers when the link itself resides in a document sent through https. REQUEST_SCHEME will be available both as an environment variable. It is defined as "http" or "https", depending on the scheme of the connection. It is safe to use this name as it does not conflict with any existing variable on Apache or Nginx. This is slightly different from the HTTPS var which is often added by webadmins on their server's configuration. EDIT: Some Apache modules also define REQUEST_SCHEME with the same possible values as this proposal. From: fbrosson <fbrosson@users.noreply.github.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3124 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 15c004d0..dc5020f5 100644
--- a/NEWS
+++ b/NEWS
@@ -48,6 +48,7 @@ NEWS
* [unittests] add test_buffer and test_base64 unit tests
* [buffer] refactor buffer_path_simplify (fixes #2560)
* validate return values from strtol, strtoul (fixes #2564)
+ * [mod_ssi] Add SSI vars SCRIPT_{URI,URL} and REQUEST_SCHEME (fixes #2721)
- 1.4.39 - 2016-01-02
* [core] fix memset_s call (fixes #2698)