Default forum to https
authorTom Hughes <tom@compton.nu>
Mon, 5 Sep 2016 19:19:50 +0000 (20:19 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 5 Sep 2016 19:19:50 +0000 (20:19 +0100)
cookbooks/forum/templates/default/apache.erb

index 0eea9db..5d50536 100644 (file)
@@ -8,7 +8,7 @@
        CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log
 
-       DocumentRoot /srv/forum.openstreetmap.org/html/
+       RedirectPermanent / https://forum.openstreetmap.org/
 </VirtualHost>
 
 <VirtualHost *:443>
@@ -24,5 +24,5 @@
        CustomLog /var/log/apache2/forum.openstreetmap.org-access.log combined
        ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log
 
-       DocumentRoot /srv/forum.openstreetmap.org
+       DocumentRoot /srv/forum.openstreetmap.org/html
 </VirtualHost>