Revert "lighttpd conf enhancements"

This commit is contained in:
Adam Warner 2018-10-26 19:12:11 +01:00 committed by GitHub
parent dd6821814a
commit f670644954
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 12 deletions

View file

@ -64,13 +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/\." {
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"
include_shell "cat external.conf 2>/dev/null"

View file

@ -82,13 +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/\." {
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"
include_shell "cat external.conf 2>/dev/null"