{"action":"created","issue":{"url":"https://api.github.com/repos/lighttpd/lighttpd1.4/issues/24","repository_url":"https://api.github.com/repos/lighttpd/lighttpd1.4","labels_url":"https://api.github.com/repos/lighttpd/lighttpd1.4/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/lighttpd/lighttpd1.4/issues/24/comments","events_url":"https://api.github.com/repos/lighttpd/lighttpd1.4/issues/24/events","html_url":"https://github.com/lighttpd/lighttpd1.4/pull/24","id":135272331,"number":24,"title":"[mod_ssi] Add SSI vars \"SCRIPT_URI\" and \"REQUEST_SCHEME\"","user":{"login":"fbrosson","id":8014660,"avatar_url":"https://avatars.githubusercontent.com/u/8014660?v=3","gravatar_id":"","url":"https://api.github.com/users/fbrosson","html_url":"https://github.com/fbrosson","followers_url":"https://api.github.com/users/fbrosson/followers","following_url":"https://api.github.com/users/fbrosson/following{/other_user}","gists_url":"https://api.github.com/users/fbrosson/gists{/gist_id}","starred_url":"https://api.github.com/users/fbrosson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbrosson/subscriptions","organizations_url":"https://api.github.com/users/fbrosson/orgs","repos_url":"https://api.github.com/users/fbrosson/repos","events_url":"https://api.github.com/users/fbrosson/events{/privacy}","received_events_url":"https://api.github.com/users/fbrosson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-02-21T22:56:46Z","updated_at":"2016-03-26T11:54:43Z","closed_at":"2016-03-26T11:19:31Z","pull_request":{"url":"https://api.github.com/repos/lighttpd/lighttpd1.4/pulls/24","html_url":"https://github.com/lighttpd/lighttpd1.4/pull/24","diff_url":"https://github.com/lighttpd/lighttpd1.4/pull/24.diff","patch_url":"https://github.com/lighttpd/lighttpd1.4/pull/24.patch"},"body":"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`**.\r\n\r\n**`SCRIPT_URI`** and **`SCRIPT_URL`** will be available as SSI variables from within documents handled by mod_ssi.\r\nThey can be used like any other SSI var with the **`#echo var`** SSI command:\r\n```\r\n<!--#echo var=\"SCRIPT_URI\"-->\r\n<!--#echo var=\"SCRIPT_URL\"-->\r\n````\r\n\r\nWebmasters willing to display links to the W3C Validator will be able to use:\r\n```\r\n<a href=\"http://validator.w3.org/check?uri=<!--#echo var=\"SCRIPT_URI\"-->\">…</a>\r\n```\r\n\r\ninstead 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.\r\n\r\nREQUEST_SCHEME will be available 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 in 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."},"comment":{"url":"https://api.github.com/repos/lighttpd/lighttpd1.4/issues/comments/201784774","html_url":"https://github.com/lighttpd/lighttpd1.4/pull/24#issuecomment-201784774","issue_url":"https://api.github.com/repos/lighttpd/lighttpd1.4/issues/24","id":201784774,"user":{"login":"fbrosson","id":8014660,"avatar_url":"https://avatars.githubusercontent.com/u/8014660?v=3","gravatar_id":"","url":"https://api.github.com/users/fbrosson","html_url":"https://github.com/fbrosson","followers_url":"https://api.github.com/users/fbrosson/followers","following_url":"https://api.github.com/users/fbrosson/following{/other_user}","gists_url":"https://api.github.com/users/fbrosson/gists{/gist_id}","starred_url":"https://api.github.com/users/fbrosson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbrosson/subscriptions","organizations_url":"https://api.github.com/users/fbrosson/orgs","repos_url":"https://api.github.com/users/fbrosson/repos","events_url":"https://api.github.com/users/fbrosson/events{/privacy}","received_events_url":"https://api.github.com/users/fbrosson/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T11:54:43Z","updated_at":"2016-03-26T11:54:43Z","body":"You're welcome! That's great!\r\nThank *you* for having accepted the patch ;-)"}}