15 lines
495 B
Django/Jinja
15 lines
495 B
Django/Jinja
<VirtualHost *:80>
|
|
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]
|
|
</VirtualHost>
|