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

Merge pull request #1257 from pi-hole/revert-1241-feature/redirect-pi-hole-to-admin

Revert "redirect pi.hole to pi.hole/admin"
This commit is contained in:
Adam Warner 2017-02-20 02:10:13 +00:00 committed by GitHub
commit 45fbadbb26
2 changed files with 0 additions and 10 deletions

View File

@ -70,10 +70,5 @@ $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." )
} }
$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 # Add user chosen options held in external file
include_shell "cat external.conf 2>/dev/null" include_shell "cat external.conf 2>/dev/null"

View File

@ -87,10 +87,5 @@ $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." )
} }
$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 # Add user chosen options held in external file
include_shell "cat external.conf 2>/dev/null" include_shell "cat external.conf 2>/dev/null"