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 Order Allow,Deny
Deny from All 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