<VirtualHost *:80>
Use replicator_host_defs
- Redirect permanent / https://replicator.pharext.org/
+ Use ssl_redirect
+</VirtualHost>
+
+<VirtualHost *:443>
+ Use replicator_host_defs
+ Use ssl_defs "pharext.org" "hsts"
</VirtualHost>
-<IfModule ssl_module>
- <VirtualHost *:443>
- Use replicator_host_defs
- Include "bits/hsts"
- SSLEngine on
- SSLUseStapling on
- SSLCertificateKeyFile /etc/letsencrypt/live/pharext.org/privkey.pem
- SSLCertificateFile /etc/letsencrypt/live/pharext.org/fullchain.pem
- </VirtualHost>
-</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet