common/templates/apache/origin.conf

25 lines
576 B
Text
Raw Normal View History

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 }}
Redirect permanent / https://wiki.crypto-libertarian.com
</VirtualHost>
<VirtualHost _default_:443>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName {{ item.domain }}
DocumentRoot {{ item.root }}
SSLEngine on
SSLCertificateFile {{ item.cert }}
SSLCertificateKeyFile {{ item.key }}
SSLCertificateChainFile {{ item.chain }}
</VirtualHost>