diff --git a/roles/httpd/website/templates/website.conf b/roles/httpd/website/templates/website.conf index 8eed648739..804942a557 100644 --- a/roles/httpd/website/templates/website.conf +++ b/roles/httpd/website/templates/website.conf @@ -17,6 +17,7 @@ {% if sslonly %} RewriteEngine On RewriteCond %{HTTPS} off + RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/.* RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE] {% else %} Include "conf.d/{{ name }}/*.conf"