3 <Macro common-ssl-HSTS>
4 <IfModule mod_headers.c>
5 # Add two month HSTS header
6 Header always add Strict-Transport-Security "max-age=5184000"
10 <Macro common-debian-service-ssl $name>
12 SSLCertificateFile /etc/ssl/debian/certs/$name.crt
13 SSLCertificateKeyFile /etc/ssl/private/$name.key
14 SSLCertificateChainFile /etc/ssl/debian/certs/$name.crt-chain
17 <Macro common-debian-service-https-redirect $bind $name>
18 <VirtualHost $bind:80>
20 ServerAdmin debian-admin@lists.debian.org
22 CustomLog /var/log/apache2/$name-access.log privacy
23 ErrorLog /var/log/apache2/$name-error.log
25 Redirect permanent / https://$name/