1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

redirect pi.hole to pi.hole/admin

This commit is contained in:
Jacob Salmela 2017-02-11 20:46:27 -06:00
parent 7c63bbfe44
commit 26cb6a1929
No known key found for this signature in database
GPG Key ID: 1962FF1A5046135E
2 changed files with 10 additions and 0 deletions

View File

@ -70,5 +70,10 @@ $HTTP["url"] =~ "^(?!/admin)/.*" {
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
}
$HTTP["host"] =~ "pi.hole$" {
setenv.add-response-header = ( "X-Pi-hole" => "Redirecting pi.hole to /admin." )
url.rewrite = ( "^(.*)" => "/admin$1" )
}
# Add user chosen options held in external file
include_shell "cat external.conf 2>/dev/null"

View File

@ -87,5 +87,10 @@ $HTTP["url"] =~ "^(?!/admin)/.*" {
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
}
$HTTP["host"] =~ "pi.hole$" {
setenv.add-response-header = ( "X-Pi-hole" => "Redirecting pi.hole to /admin." )
url.rewrite = ( "^(.*)" => "/admin$1" )
}
# Add user chosen options held in external file
include_shell "cat external.conf 2>/dev/null"