X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/dcca22ed1af7a37c50f4021e8a32ab71ad7259cf..7450e9290e52c75980964f43badc1280769e4e2c:/cookbooks/mediawiki/templates/default/apache.erb diff --git a/cookbooks/mediawiki/templates/default/apache.erb b/cookbooks/mediawiki/templates/default/apache.erb index dcded20cc..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