diff --git a/templates/default_vhost.conf.j2 b/templates/default_vhost.conf.j2 index f58d778..47bc54b 100644 --- a/templates/default_vhost.conf.j2 +++ b/templates/default_vhost.conf.j2 @@ -3,5 +3,7 @@ NameVirtualHost *:{{ httpd_port }} ServerName {{ httpd_servername }} DocumentRoot "{{ httpd_data_directory }}" - Redirect permanent / https://{{ httpd_servername }} + RewriteEngine On + RewriteCond %{HTTPS} !=on + RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]