Add .htaccess files with access settings

[MAILPOET-1949]
This commit is contained in:
Jan Jakeš
2019-09-23 16:01:11 +02:00
committed by Jack Kitterhing
parent 910b62cd70
commit 4e7d0252e6
2 changed files with 27 additions and 0 deletions

15
.htaccess Normal file
View File

@@ -0,0 +1,15 @@
# disable directory listing
Options -Indexes
# disable file serving (Apache 2.4)
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# disable file serving (Apache 2.2)
<IfModule !mod_authz_core.c>
<IfModule mod_authz_host.c>
Order deny,allow
Deny from all
</IfModule>
</IfModule>

12
assets/.htaccess Normal file
View File

@@ -0,0 +1,12 @@
# enable file serving (Apache 2.4)
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
# enable file serving (Apache 2.2)
<IfModule !mod_authz_core.c>
<IfModule mod_authz_host.c>
Order allow,deny
Allow from all
</IfModule>
</IfModule>