From fce91476427b7cce361c3e5d9d2bbf894e6bca5b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 8 Apr 2024 21:13: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 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