From 8dc2e13fab67531fbac2ffa658a301b356badad5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 09:22:11 +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') 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