add config
[m6w6/m6w6.name] / etc / apache2.conf
diff --git a/etc/apache2.conf b/etc/apache2.conf
new file mode 100644 (file)
index 0000000..c9cf3f8
--- /dev/null
@@ -0,0 +1,31 @@
+<Macro m6w6_host_defs>
+       ServerName m6w6.name
+       ServerAlias www.m6w6.name
+       ServerAdmin webmaster@m6w6.name
+
+       DocumentRoot /var/www/m6w6
+
+       <Directory /var/www/m6w6>
+               Options Indexes FollowSymLinks MultiViews
+               AllowOverride None
+               Require all granted
+       </Directory>
+</Macro>
+
+<VirtualHost *:80>
+       Use m6w6_host_defs
+       RedirectPermanent / https://m6w6.name/
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+       <VirtualHost *:443>
+               Use m6w6_host_defs
+               Include "bits/hsts-nosub"
+               SSLEngine on
+               SSLUseStapling on
+               SSLCertificateFile /etc/letsencrypt/live/m6w6.name/fullchain.pem
+               SSLCertificateKeyFile /etc/letsencrypt/live/m6w6.name/privkey.pem
+       </VirtualHost>
+</IfModule>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet