redirect pi.hole to pi.hole/admin
This commit is contained in:
parent
7c63bbfe44
commit
26cb6a1929
|
@ -70,5 +70,10 @@ $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"
|
||||||
|
|
|
@ -87,5 +87,10 @@ $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"
|
||||||
|
|
Loading…
Reference in New Issue