mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-31 20:50:17 +00:00
Merge pull request #2481 from pi-hole/revert-2468-lighttpd-conf-enhancements
Revert "lighttpd conf enhancements"
This commit is contained in:
commit
f1a7bc9ecd
2 changed files with 12 additions and 12 deletions
|
@ -64,13 +64,13 @@ $HTTP["url"] =~ "^/admin/" {
|
||||||
# Allow Block Page access to local fonts
|
# Allow Block Page access to local fonts
|
||||||
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
|
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Block . files from being served, such as .git, .github, .gitignore
|
# Block . files from being served, such as .git, .github, .gitignore
|
||||||
$HTTP["url"] =~ "^/admin/\." {
|
$HTTP["url"] =~ "^/admin/\.(.*)" {
|
||||||
url.access-deny = ("")
|
url.access-deny = ("")
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add user chosen options held in external file
|
# Add user chosen options held in external file
|
||||||
# (use file glob for optional file)
|
# This uses include_shell instead of an include wildcard for compatibility
|
||||||
include "external*.conf"
|
include_shell "cat external.conf 2>/dev/null"
|
||||||
|
|
|
@ -82,13 +82,13 @@ $HTTP["url"] =~ "^/admin/" {
|
||||||
# Allow Block Page access to local fonts
|
# Allow Block Page access to local fonts
|
||||||
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
|
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Block . files from being served, such as .git, .github, .gitignore
|
# Block . files from being served, such as .git, .github, .gitignore
|
||||||
$HTTP["url"] =~ "^/admin/\." {
|
$HTTP["url"] =~ "^/admin/\.(.*)" {
|
||||||
url.access-deny = ("")
|
url.access-deny = ("")
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add user chosen options held in external file
|
# Add user chosen options held in external file
|
||||||
# (use file glob for optional file)
|
# This uses include_shell instead of an include wildcard for compatibility
|
||||||
include "external*.conf"
|
include_shell "cat external.conf 2>/dev/null"
|
||||||
|
|
Loading…
Add table
Reference in a new issue