# Usage:
# This virtual host is meant to be used to deploy a configuration file
# for the email service that is currently using the autoconfig.replicant.us address
ServerName autoconfig.replicant.us
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REMOTE_ADDR} !=127.0.0.1
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ServerAdmin contact@replicant.us
ServerName autoconfig.replicant.us
DocumentRoot /var/www/autoconfig.replicant.us
Header always set Strict-Transport-Security "max-age=31536000;"
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/autoconfig.replicant.us/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/autoconfig.replicant.us/chain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/autoconfig.replicant.us/privkey.pem