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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user