ansible/roles/redirect/templates/apache2-redirect.conf
Salt 3dc0af70d7 Disable outdated TLS versions
hopefully this fixes git
2020-06-04 19:35:59 -05:00

23 lines
707 B
ApacheConf

# Configuration for {{ redirect_from }}
# 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_from }}.crt
SSLCertificateKeyFile /etc/pki/cert/private/{{ redirect_from }}.key
SSLCertificateChainFile /etc/pki/cert/crt/{{ redirect_from}}-fullchain.crt
SSLProtocol {{ ssl_protocol }}
SSLCipherSuite {{ ssl_cipher_suite }}
ServerName {{ redirect_from }}
Redirect permanent / https://{{ redirect_to }}/
</VirtualHost>