Files
configpolicy/roles/websites/dustin.hatch.name/files/dustin.hatch.name.httpd.conf
Dustin C. Hatch d363026db2 websites: dustin.hatch.name: Deploy new site
Promoting the new site I have been working on at *dustin.hatch.is* to my
main domain, *dustin.hatch.name*.  The new site is just static content,
generated and uploaded by a Jenkins job.

Finally have a certificate for *dustin.hatch.name* now, too!
2022-04-23 15:30:40 -05:00

26 lines
646 B
ApacheConf

# vim: set ft=apache :
<VirtualHost _default_:80>
ServerName dustin.hatch.name
RewriteEngine On
RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L]
</VirtualHost>
<VirtualHost _default_:443>
ServerName dustin.hatch.name
Include conf.d/ssl.include
SSLCertificateKeyFile /etc/pki/tls/private/dustin.hatch.name.key
SSLCertificateFile /etc/pki/tls/certs/dustin.hatch.name.cer
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
</IfModule>
DocumentRoot /srv/www/dustin.hatch.name/htdocs
<Directory /srv/www/dustin.hatch.name/htdocs>
Require all granted
</Directory>
</VirtualHost>