You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2020/05/21 10:54:37 UTC
[incubator-streampipes-website] branch dev updated:
[STREAMPIPES-139] Redirect traffic to HTTPS
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-website.git
The following commit(s) were added to refs/heads/dev by this push:
new cbe5cd4 [STREAMPIPES-139] Redirect traffic to HTTPS
cbe5cd4 is described below
commit cbe5cd4fc11ea397a53c8f8eafba25702d46111d
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Thu May 21 12:54:21 2020 +0200
[STREAMPIPES-139] Redirect traffic to HTTPS
---
.github/workflows/deploy-website.yml | 3 +++
.htaccess | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+)
diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml
index 6616105..c449a21 100644
--- a/.github/workflows/deploy-website.yml
+++ b/.github/workflows/deploy-website.yml
@@ -21,6 +21,9 @@ jobs:
- name: Copy asf yaml
run: |
cp .asf.yaml build/
+ - name: Copy htaccess
+ run: |
+ cp .htaccess build/
- name: Build Docs
run: |
mkdir build/docs
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..a1a6339
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+RewriteEngine On
+RewriteCond %{HTTPS} !=on
+RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
\ No newline at end of file