ServerName {{ inventory_hostname }} ServerAdmin webmaster@{{ inventory_hostname }} DocumentRoot /var/www/html 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]