added redirect

This commit is contained in:
DigitalInfinity committed 2021-06-06 19:20:16 +01:00
1 parent 05c7c1bc9e
commit 6c24878a64
1 file changed
+5
+5
View File
@@ -6,4 +6,9 @@
ErrorLog ${APACHE_LOG_DIR}/{{ inventory_hostname }}.error.log
CustomLog ${APACHE_LOG_DIR}/{{ inventory_hostname }}.access.log combined
#rewrite transparent to https, keep uri
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</VirtualHost>