Fix a few forum configuration issues
authorTom Hughes <tom@compton.nu>
Mon, 5 Sep 2016 20:03:30 +0000 (21:03 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 5 Sep 2016 20:03:30 +0000 (21:03 +0100)
cookbooks/forum/recipes/default.rb
cookbooks/forum/templates/default/apache.erb

index 4bf5765..4ab8410 100644 (file)
@@ -28,6 +28,7 @@ package "php-mysql"
 package "php-apcu"
 
 apache_module "php7.0"
+apache_module "rewrite"
 
 apache_site "default" do
   action [:disable]
@@ -67,7 +68,7 @@ end
 template "/srv/forum.openstreetmap.org/html/config.php" do
   source "config.php.erb"
   owner "forum"
-  group "forum"
+  group "www-data"
   mode 0o440
   variables :passwords => passwords
 end
index d84b019..4b3c844 100644 (file)
 </VirtualHost>
 
 <Directory /srv/forum.openstreetmap.org/html>
-           RewriteEngine on
+        RewriteEngine on
+        RewriteRule ^config\.php$ - [F,L]
 
-           RewriteRule ^config\.php$ - [F,L]
+        Options -Indexes
+
+        Require all granted
 </Directory>
 
 <Directory /srv/forum.openstreetmap.org/html/img>