update nginx and lighttpd sample server configs to explicit dissalow access to util

This commit is contained in:
Mario Vavti 2019-01-27 18:05:46 +01:00
parent 5c2f7a744a
commit e262de9b2d
2 changed files with 6 additions and 1 deletions

View File

@ -79,7 +79,7 @@ $HTTP["url"] =~ "\.(out|log|htaccess)$" {
url.access-deny = ("")
}
$HTTP["url"] =~ "(^|/)\.git|(^|/)store" {
$HTTP["url"] =~ "(^|/)\.git|(^|/)store|(^|/)util" {
url.access-deny = ("")
}

View File

@ -141,5 +141,10 @@ server {
deny all;
}
#deny access to util
location ~ /util {
deny all;
}
}