Last active
July 19, 2018 22:21
-
-
Save josephabrahams/81f3ecee09246405167ec751e5911760 to your computer and use it in GitHub Desktop.
Redirect Pi-hole home page when accessing from hostname
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/lighttpd/external.conf | |
$HTTP["host"] == "pi.hole" { | |
# Ensure the Pi-hole Block Page knows that this is not a blocked domain | |
setenv.add-environment = ("fqdn" => "true") | |
# Redirect homepage to "/admin/" | |
$HTTP["url"] == "/" { | |
url.redirect = ( "" => "/admin/" ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo service lighttpd restart