Add <IfModule *.c> and <IfVersion> to all .htaccess

This commit is contained in:
slawkens 2020-01-15 20:58:49 +01:00
parent c7f2cab56a
commit dd1e604155
4 changed files with 36 additions and 4 deletions

View File

@ -1 +1,11 @@
deny from all
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
<IfVersion < 2.4>
order allow,deny
deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>

View File

@ -1 +1,11 @@
deny from all
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
<IfVersion < 2.4>
order allow,deny
deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>

View File

@ -1,2 +1,11 @@
Options -Indexes
Deny from all
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
<IfVersion < 2.4>
order allow,deny
deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>

3
tools/.htaccess Normal file
View File

@ -0,0 +1,3 @@
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>