mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-08 23:20:56 +00:00
Update lighttpd.conf.fedora
Mirror changes found in `lighttpd.conf.debian`
This commit is contained in:
parent
356c70cdae
commit
74b15d10d9
@ -75,22 +75,13 @@ fastcgi.server = ( ".php" =>
|
|||||||
# If the URL starts with /admin, it is the Web interface
|
# If the URL starts with /admin, it is the Web interface
|
||||||
$HTTP["url"] =~ "^/admin/" {
|
$HTTP["url"] =~ "^/admin/" {
|
||||||
# Create a response header for debugging using curl -I
|
# Create a response header for debugging using curl -I
|
||||||
setenv.add-response-header = ( "X-Pi-hole" => "The Pi-hole Web interface is working!" )
|
setenv.add-response-header = (
|
||||||
}
|
"X-Pi-hole" => "The Pi-hole Web interface is working!",
|
||||||
|
"X-Frame-Options" => "DENY"
|
||||||
# Rewite js requests, must be out of $HTTP block due to bug #2526
|
)
|
||||||
url.rewrite = ( "^(?!/admin/).*\.js$" => "pihole/index.js" )
|
$HTTP["url"] =~ ".ttf$" {
|
||||||
|
# Allow Block Page access to local fonts
|
||||||
# If the URL does not start with /admin, then it is a query for an ad domain
|
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
|
||||||
$HTTP["url"] =~ "^(?!/admin)/.*" {
|
|
||||||
# Create a response header for debugging using curl -I
|
|
||||||
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
|
|
||||||
}
|
|
||||||
|
|
||||||
# Entering just "pi.hole" into a browser redirects to "pi.hole/admin/"
|
|
||||||
$HTTP["host"] == "pi.hole" {
|
|
||||||
$HTTP["url"] == "/" {
|
|
||||||
url.redirect = ( "" => "/admin/" )
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user