<Directory <%= @directory %>>
Options -Indexes
+ Require all granted
</Directory>
<Directory <%= @mediawiki[:directory] %>/images/>
php_admin_flag engine off
Options -ExecCGI -Includes -Indexes
AllowOverride None
+ AddType text/plain .html .htm .shtml
+<% if @mediawiki[:private] -%>
+ Require all denied
+<% end -%>
</Directory>
<Directory <%= @mediawiki[:directory] %>/images/thumb/>
</Directory>
<Directory <%= @mediawiki[:directory] %>/maintenance/>
- Order allow,deny
- Deny from all
+ Require all denied
</Directory>
<Files <%= @mediawiki[:directory] %>/LocalSettings.php>
- Order allow,deny
- Deny from all
+ Require all denied
</Files>
- <Directory <%= @mediawiki[:directory] %>/images/>
- Options -ExecCGI -Includes -Indexes
- AllowOverride None
- AddType text/plain .html .htm .shtml
- php_admin_flag engine off
- </Directory>
-
<Directory <%= @mediawiki[:directory] %>/cache/>
Options -ExecCGI -Includes -Indexes
AllowOverride None
</Directory>
<Directory ~ "\.svn">
- Order allow,deny
- Deny from all
+ Require all denied
</Directory>
<Directory ~ "\.git">
- Order allow,deny
- Deny from all
+ Require all denied
</Directory>
<Files ~ "~$">
- Order allow,deny
- Deny from all
+ Require all denied
</Files>
</VirtualHost>
<% if @mediawiki[:enable_ssl] -%>
<Directory <%= @directory %>>
Options -Indexes
+ Require all granted
</Directory>
<Directory <%= @mediawiki[:directory] %>/images/>
php_admin_flag engine off
Options -ExecCGI -Includes -Indexes
AllowOverride None
+<% if @mediawiki[:private] -%>
+ Require all denied
+<% end -%>
</Directory>
<Directory <%= @mediawiki[:directory] %>/images/thumb/>
</Directory>
<Directory <%= @mediawiki[:directory] %>/maintenance/>
- Order allow,deny
- Deny from all
+ Require all denied
</Directory>
<Files <%= @mediawiki[:directory] %>/LocalSettings.php>
- Order allow,deny
- Deny from all
+ Require all denied
</Files>
<Directory <%= @mediawiki[:directory] %>/images/>
</Directory>
<Directory ~ "\.svn">
- Order allow,deny
- Deny from all
+ Require all denied
</Directory>
<Directory ~ "\.git">
- Order allow,deny
- Deny from all
+ Require all denied
</Directory>
<Files ~ "~$">
- Order allow,deny
- Deny from all
+ Require all denied
</Files>
</VirtualHost>
<% end -%>