21 lines
629 B
Plaintext
21 lines
629 B
Plaintext
|
# Configuration for {{ redirect_url }}
|
||
|
# Redirect to {{ redirect_to }}
|
||
|
# vim:ft=apache:
|
||
|
|
||
|
# Accept connections from non-SNI clients
|
||
|
SSLStrictSNIVHostCheck off
|
||
|
|
||
|
# Website configuration
|
||
|
<VirtualHost *:80>
|
||
|
ServerName {{ redirect_from }}
|
||
|
Redirect permanent / https://{{ redirect_to }}
|
||
|
</VirtualHost>
|
||
|
<VirtualHost *:443>
|
||
|
SSLEngine on
|
||
|
SSLCertificateFile /etc/pki/cert/crt/{{ redirect_url }}.crt
|
||
|
SSLCertificateKeyFile /etc/pki/cert/private/{{ redirect_url }}.key
|
||
|
SSLCertificateChainFile /etc/pki/cert/crt/{{ redirect_url}}-fullchain.crt
|
||
|
ServerName {{ redirect_url }}
|
||
|
Redirect permanent / https://{{ redirect_to }}
|
||
|
</VirtualHost>
|