From 4fe291eb349d47ccb529a13bc90f5ae9d38d66f8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:17:13 +0200 Subject: Adding configuration file to rewrite http to https. Signed-off-by: Daniel Baumann --- debian/config-dir/conf-available/rewrite-http-to-https.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 debian/config-dir/conf-available/rewrite-http-to-https.conf (limited to 'debian/config-dir/conf-available') diff --git a/debian/config-dir/conf-available/rewrite-http-to-https.conf b/debian/config-dir/conf-available/rewrite-http-to-https.conf new file mode 100644 index 0000000..c90c2e9 --- /dev/null +++ b/debian/config-dir/conf-available/rewrite-http-to-https.conf @@ -0,0 +1,10 @@ +# /etc/apache2/conf-available/rewrite-http-to-https.conf + + + + RewriteEngine On + + RewriteCond %{REQUEST_URI} !^/\.well\-known/acme\-challenge/ + RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] + + -- cgit v1.2.3