add config
[m6w6/m6w6.name] / etc / apache2.conf
1 <Macro m6w6_host_defs>
2 ServerName m6w6.name
3 ServerAlias www.m6w6.name
4 ServerAdmin webmaster@m6w6.name
5
6 DocumentRoot /var/www/m6w6
7
8 <Directory /var/www/m6w6>
9 Options Indexes FollowSymLinks MultiViews
10 AllowOverride None
11 Require all granted
12 </Directory>
13 </Macro>
14
15 <VirtualHost *:80>
16 Use m6w6_host_defs
17 RedirectPermanent / https://m6w6.name/
18 </VirtualHost>
19
20 <IfModule mod_ssl.c>
21 <VirtualHost *:443>
22 Use m6w6_host_defs
23 Include "bits/hsts-nosub"
24 SSLEngine on
25 SSLUseStapling on
26 SSLCertificateFile /etc/letsencrypt/live/m6w6.name/fullchain.pem
27 SSLCertificateKeyFile /etc/letsencrypt/live/m6w6.name/privkey.pem
28 </VirtualHost>
29 </IfModule>
30
31 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet