jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] branch master updated: Add redirection to https via .htaccess for the source of the site
Date Wed, 19 Feb 2020 20:49:01 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new e30ee8d  Add redirection to https via .htaccess for the source of the site
e30ee8d is described below

commit e30ee8d5be707221931a3e20f7be853fd05d3f43
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Wed Feb 19 21:48:25 2020 +0100

    Add redirection to https via .htaccess for the source of the site
---
 src/dist/build.gradle.kts | 1 +
 xdocs/.htaccess           | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/src/dist/build.gradle.kts b/src/dist/build.gradle.kts
index 08faaa9..5b3d12c 100644
--- a/src/dist/build.gradle.kts
+++ b/src/dist/build.gradle.kts
@@ -275,6 +275,7 @@ val xdocs = "$rootDir/xdocs"
 
 fun CopySpec.docCssAndImages() {
     from(xdocs) {
+        include(".htaccess")
         include("css/**")
         include("images/**")
     }
diff --git a/xdocs/.htaccess b/xdocs/.htaccess
new file mode 100644
index 0000000..a92e2ce
--- /dev/null
+++ b/xdocs/.htaccess
@@ -0,0 +1,6 @@
+RewriteEngine On
+
+RewriteCond %{HTTP_HOST} ^jmeter\.apache\.org [NC]
+RewriteCond %{HTTPS} !on
+
+RewriteRule ^(.*)$ https://jmeter.apache.org/$1 [L]


Mime
View raw message