Merge pull request #2481 from pi-hole/revert-2468-lighttpd-conf-enhancements

Revert "lighttpd conf enhancements"
pull/2498/head
Mark Drobnak 6 years ago committed by GitHub
commit f1a7bc9ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,13 +64,13 @@ $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/\." {
url.access-deny = ("")
}
# Block . files from being served, such as .git, .github, .gitignore
$HTTP["url"] =~ "^/admin/\.(.*)" {
url.access-deny = ("")
}
# Add user chosen options held in external file
# (use file glob for optional file)
include "external*.conf"
# This uses include_shell instead of an include wildcard for compatibility
include_shell "cat external.conf 2>/dev/null"

@ -82,13 +82,13 @@ $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/\." {
url.access-deny = ("")
}
# Block . files from being served, such as .git, .github, .gitignore
$HTTP["url"] =~ "^/admin/\.(.*)" {
url.access-deny = ("")
}
# Add user chosen options held in external file
# (use file glob for optional file)
include "external*.conf"
# This uses include_shell instead of an include wildcard for compatibility
include_shell "cat external.conf 2>/dev/null"

Loading…
Cancel
Save