fixed access LOGs issue

This commit is contained in:
Taras Machyshyn
2014-08-11 11:30:28 +03:00
parent ef3ed38b97
commit a5b7bfc00e
3 changed files with 17 additions and 6 deletions

View File

@@ -1,10 +1,23 @@
DirectoryIndex index.php index.html
RedirectMatch 403 \.config$
# PROTECTED DIRECTORIES
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule (?i)(data|api) - [F]
</IfModule>
RedirectMatch 403 (?i)/data/config\.php$
RedirectMatch 403 (?i)/data/logs
RedirectMatch 403 (?i)/data/cache
RedirectMatch 403 (?i)/data/upload
RedirectMatch 403 (?i)/application
RedirectMatch 403 (?i)/custom
RedirectMatch 403 (?i)/vendor
#END PROTECTED DIRECTORIES
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_ESPO_CGI_AUTH:%{HTTP:Authorization}]
RewriteEngine On
RewriteRule .* - [E=HTTP_ESPO_CGI_AUTH:%{HTTP:Authorization}]
RewriteRule reset/?$ reset.html [QSA,L]
RewriteRule reset/?$ reset.html [QSA,L]
</IfModule>

View File

View File

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