centralized htaccess

This commit is contained in:
Miroslav Šedivý 2019-12-26 19:04:05 +01:00
parent c7a4c5e2c5
commit b939cefb69
5 changed files with 12 additions and 6 deletions

14
.htaccess Normal file → Executable file
View File

@ -1,4 +1,14 @@
<Files ~ "\.(ini|sql)$">
RewriteEngine on
RewriteRule ^app/?.*$ - [F,L]
RewriteRule ^data/logs/?.*$ - [F,L]
<Files ~ "\.(ini|sql|yml|md)$">
Order Allow,Deny
Deny from All
</Files>
</Files>
<Files ~ "^(\.|Dockerfile)">
Order Allow,Deny
Deny from All
</Files>

View File

@ -1 +0,0 @@
deny from all

View File

@ -1,2 +0,0 @@
Order Allow,Deny
Deny from All

View File

View File

@ -1 +0,0 @@
deny from all