You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2020/02/24 19:39:10 UTC

[lucene-site] branch master updated (2b33f27 -> f0630c7)

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-site.git.


 discard 2b33f27  LUCENE-9227: Redirect HTTP->HTTPS, set Strict-Transport-Security header when served via HTTPS (with short lifetime for now)
     new f0630c7  LUCENE-9227: Redirect HTTP->HTTPS, set Strict-Transport-Security header when served via HTTPS (with short lifetime for now)

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (2b33f27)
            \
             N -- N -- N   refs/heads/master (f0630c7)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 themes/lucene/templates/htaccess.template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


[lucene-site] 01/01: LUCENE-9227: Redirect HTTP->HTTPS, set Strict-Transport-Security header when served via HTTPS (with short lifetime for now)

Posted by us...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-site.git

commit f0630c7d437197be1322a93682df236e3d909013
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Mon Feb 24 20:36:22 2020 +0100

    LUCENE-9227: Redirect HTTP->HTTPS, set Strict-Transport-Security header when served via HTTPS (with short lifetime for now)
---
 themes/lucene/templates/htaccess.template | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/themes/lucene/templates/htaccess.template b/themes/lucene/templates/htaccess.template
index b4552b0..ca458cc 100644
--- a/themes/lucene/templates/htaccess.template
+++ b/themes/lucene/templates/htaccess.template
@@ -16,6 +16,13 @@
 RewriteEngine on
 RewriteBase /
 
+<If "%{HTTPS} == 'on'">
+  Header always set Strict-Transport-Security "max-age=300"
+</If>
+<Else>
+  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
+</Else>
+
 ### Pre-CMS site redirects
 
 # DOAP file redirects to source repository