Deny access to tests folder

This commit is contained in:
Tyler Cosgrove
2016-01-31 11:47:53 -05:00
parent 47b5cd7db7
commit 3d830fb608

View File

@@ -30,7 +30,7 @@ url.rewrite-if-not-file = (
$HTTP["url"] =~ "^/grav_path/(LICENSE.txt|composer.json|composer.lock|nginx.conf|web.config)$" {
url.access-deny = ("")
}
$HTTP["url"] =~ "^/grav_path/(.git|cache|bin|logs|backup)/(.*)" {
$HTTP["url"] =~ "^/grav_path/(.git|cache|bin|logs|backup|tests)/(.*)" {
url.access-deny = ("")
}
$HTTP["url"] =~ "^/grav_path/(system|user|vendor)/(.*)\.(txt|md|html|yaml|php|twig|sh|bat)$" {