X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/947d5ccfbb71576033782d37dfa28d81c0d197f3..46d97368eb6034f2eb95d5a8400bd4bf6faf4ed2:/cookbooks/mediawiki/templates/default/apache.erb diff --git a/cookbooks/mediawiki/templates/default/apache.erb b/cookbooks/mediawiki/templates/default/apache.erb index 6cbbc76e6..dcded20cc 100644 --- a/cookbooks/mediawiki/templates/default/apache.erb +++ b/cookbooks/mediawiki/templates/default/apache.erb @@ -200,6 +200,14 @@ php_admin_flag engine off Options -ExecCGI -Includes -Indexes AllowOverride None +<% if @mediawiki[:private] -%> +<% if node[:lsb][:release].to_f >= 14.04 -%> + Require all denied +<% else -%> + Order allow,deny + Deny from all +<% end -%> +<% end -%> /images/thumb/>