From: Tom Hughes Date: Mon, 5 Sep 2016 20:03:30 +0000 (+0100) Subject: Fix a few forum configuration issues X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/66d16bfc802d59c8561946e352d628a83019fb18 Fix a few forum configuration issues --- diff --git a/cookbooks/forum/recipes/default.rb b/cookbooks/forum/recipes/default.rb index 4bf5765f2..4ab841062 100644 --- a/cookbooks/forum/recipes/default.rb +++ b/cookbooks/forum/recipes/default.rb @@ -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 diff --git a/cookbooks/forum/templates/default/apache.erb b/cookbooks/forum/templates/default/apache.erb index d84b01967..4b3c844c8 100644 --- a/cookbooks/forum/templates/default/apache.erb +++ b/cookbooks/forum/templates/default/apache.erb @@ -29,9 +29,12 @@ - RewriteEngine on + RewriteEngine on + RewriteRule ^config\.php$ - [F,L] - RewriteRule ^config\.php$ - [F,L] + Options -Indexes + + Require all granted