X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b01179f08d990df3f4a41c87eaba740d5ade29b1..8b72732cd79ec76f34a560cfd9f1d526d7a7ce7e:/cookbooks/mediawiki/templates/default/apache.erb diff --git a/cookbooks/mediawiki/templates/default/apache.erb b/cookbooks/mediawiki/templates/default/apache.erb index 6cbbc76e6..b37ec1b0c 100644 --- a/cookbooks/mediawiki/templates/default/apache.erb +++ b/cookbooks/mediawiki/templates/default/apache.erb @@ -58,6 +58,15 @@ php_admin_flag engine off Options -ExecCGI -Includes -Indexes AllowOverride None + AddType text/plain .html .htm .shtml +<% 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/> @@ -98,13 +107,6 @@ <% end -%> - /images/> - Options -ExecCGI -Includes -Indexes - AllowOverride None - AddType text/plain .html .htm .shtml - php_admin_flag engine off - - /cache/> Options -ExecCGI -Includes -Indexes AllowOverride None @@ -200,6 +202,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/>