ansible/roles/redirect/templates/apache2-redirect.conf
Salt 728a6e4771 Add simple redirect role
And furnish that one, too
2020-02-11 04:16:57 -06:00

21 lines
629 B
ApacheConf

# 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>