From commits-return-10446-apmail-jmeter-commits-archive=jmeter.apache.org@jmeter.apache.org Sat Feb 22 12:09:57 2020 Return-Path: X-Original-To: apmail-jmeter-commits-archive@minotaur.apache.org Delivered-To: apmail-jmeter-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 1D237191BE for ; Sat, 22 Feb 2020 12:09:57 +0000 (UTC) Received: (qmail 72977 invoked by uid 500); 22 Feb 2020 12:09:56 -0000 Delivered-To: apmail-jmeter-commits-archive@jmeter.apache.org Received: (qmail 72942 invoked by uid 500); 22 Feb 2020 12:09:56 -0000 Mailing-List: contact commits-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list commits@jmeter.apache.org Received: (qmail 72923 invoked by uid 99); 22 Feb 2020 12:09:56 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Feb 2020 12:09:56 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id EA4198DACA; Sat, 22 Feb 2020 12:09:55 +0000 (UTC) Date: Sat, 22 Feb 2020 12:09:55 +0000 To: "commits@jmeter.apache.org" Subject: [jmeter-site] branch asf-site updated: Add redirect to https for all requests on JMeter's site MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <158237339574.17409.10304903734288992684@gitbox.apache.org> From: fschumacher@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: jmeter-site X-Git-Refname: refs/heads/asf-site X-Git-Reftype: branch X-Git-Oldrev: 4491c2752e717d773913143ca40de7abd9bca989 X-Git-Newrev: 924b11b22c4966a013daae213c75292bf7a692a4 X-Git-Rev: 924b11b22c4966a013daae213c75292bf7a692a4 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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] +