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!
This commit is contained in:
2022-04-23 15:30:40 -05:00
parent 3c8e576841
commit d363026db2
8 changed files with 59 additions and 55 deletions

View File

@@ -1,20 +1,25 @@
# vim: set ft=apache :
WSGIDaemonProcess dchwww \
user=webapp.dchwww \
group=webapp.dchwww \
python-home=/srv/www/dustin.hatch.name/venv \
display-name=%{GROUP}
<VirtualHost _default_:80>
ServerName dustin.hatch.name
<VirtualHost *:80>
ServerName dustin.hatch.name
WSGIScriptAlias / /srv/www/dustin.hatch.name/site.py \
process-group=dchwww
Alias /static /srv/www/dustin.hatch.name/static
<Location />
Require all granted
</Location>
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>