2020-01-21 06:48:55 -05:00
|
|
|
NameVirtualHost *:80
|
|
|
|
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
|
|
|
|
ServerName {{ item.domain }}
|
|
|
|
|
2020-01-21 06:57:29 -05:00
|
|
|
Redirect permanent / https://{{ item.domain }}
|
2020-01-21 06:48:55 -05:00
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
<VirtualHost _default_:443>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
|
|
|
|
ServerName {{ item.domain }}
|
|
|
|
|
|
|
|
DocumentRoot {{ item.root }}
|
|
|
|
|
2020-01-22 13:54:58 -05:00
|
|
|
RewriteEngine on
|
|
|
|
SSLEngine on
|
|
|
|
|
2020-01-21 06:48:55 -05:00
|
|
|
SSLCertificateFile {{ item.cert }}
|
|
|
|
SSLCertificateKeyFile {{ item.key }}
|
|
|
|
SSLCertificateChainFile {{ item.chain }}
|
2020-01-22 13:54:58 -05:00
|
|
|
|
|
|
|
{% for rewrite in item.rewrites %}
|
|
|
|
RewriteRule {{ rewrite }}
|
|
|
|
{% endfor %}
|
2020-01-21 06:48:55 -05:00
|
|
|
</VirtualHost>
|