27 lines
573 B
ApacheConf
27 lines
573 B
ApacheConf
# vim: set ft=apache :
|
|
MDomain dustin.hatch.name
|
|
|
|
<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
|
|
|
|
RemoteIPProxyProtocol On
|
|
|
|
Include conf.d/ssl.include
|
|
|
|
<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>
|