mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Redirect pi.hole to pi.hole/admin/
This commit is contained in:
parent
412cacac49
commit
b2d78edae9
@ -70,5 +70,13 @@ $HTTP["url"] =~ "^(?!/admin)/.*" {
|
|||||||
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
|
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"] == "/" {
|
||||||
|
setenv.add-response-header = ( "X-Pi-hole" => "Redirecting pi.hole to /admin/." )
|
||||||
|
url.redirect = ( "" => "/admin/" )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Add user chosen options held in external file
|
# Add user chosen options held in external file
|
||||||
include_shell "cat external.conf 2>/dev/null"
|
include_shell "cat external.conf 2>/dev/null"
|
||||||
|
Loading…
Reference in New Issue
Block a user