1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

lighttpd: slightly more efficient sample config

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
This commit is contained in:
Glenn Strauss 2018-10-17 06:42:54 -04:00
parent 69b2a5a876
commit 67bdcbcf19
2 changed files with 8 additions and 8 deletions

View File

@ -64,12 +64,12 @@ $HTTP["url"] =~ "^/admin/" {
# Allow Block Page access to local fonts
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
}
}
# Block . files from being served, such as .git, .github, .gitignore
$HTTP["url"] =~ "^/admin/\.(.*)" {
$HTTP["url"] =~ "^/admin/\." {
url.access-deny = ("")
}
}
# Add user chosen options held in external file
# (use file glob for optional file)

View File

@ -82,12 +82,12 @@ $HTTP["url"] =~ "^/admin/" {
# Allow Block Page access to local fonts
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
}
}
# Block . files from being served, such as .git, .github, .gitignore
$HTTP["url"] =~ "^/admin/\.(.*)" {
$HTTP["url"] =~ "^/admin/\." {
url.access-deny = ("")
}
}
# Add user chosen options held in external file
# (use file glob for optional file)