From e7767422657da0881fc5fb9e08c2f7cac001e1d4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 7 May 2024 04:05:57 +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