jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter-site] branch asf-site updated: Add redirect to https for all requests on JMeter's site
Date Sat, 22 Feb 2020 12:09:55 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/jmeter-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 924b11b  Add redirect to https for all requests on JMeter's site
924b11b is described below

commit 924b11b22c4966a013daae213c75292bf7a692a4
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Sat Feb 22 13:09:42 2020 +0100

    Add redirect to https for all requests on JMeter's site
---
 .htaccess | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..7fe5e55
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,31 @@
+##   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
+
+# Redirect http to https
+# From Cordova PMC Member raphinesse
+# https://s.apache.org/An8s
+
+# If we receive a forwarded http request from a proxy...
+RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
+
+# ...or just a plain old http request directly from the client
+RewriteCond %{HTTP:X-Forwarded-Proto} =""
+RewriteCond %{HTTPS} !=on
+
+# Redirect to https version
+RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L]
+


Mime
View raw message