]> git.openstreetmap.org Git - chef.git/commitdiff
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 4bf5765f2220126207039a37c3877b0fed8d4483..4ab841062159a7e15c63c9e850fd149fcbb79053 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 d84b0196779a277db1618eb737263384cb801aaa..4b3c844c82cc79c29069356182773a5d60d4bfcb 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>