Hi,
I recently configured the Pi hole web interface to use https with my domain I am currently using the following external Lighttpd config to redirect HTTP requests to https as recommended in the guide.
Redirect HTTP to HTTPS
$HTTP["scheme"] == "http" {
$HTTP["host"] =~ "." {
url.redirect = ("." => "https://%0$0")
}
}
Expected Behaviour:
for HTTP requests for the pi hole web interface to be redirected to https://fqdn/admin
Actual Behaviour:
I am still able to access the pi hole web interface over HTTP using the following permutations:
- http://ip address/admin
- IP address/admin
- www.domain/admin
- http://www.domain/admin
Does anyone have any recommendations on how to restrict/redirect access to the Pi hole web interface to the following URL pattern https://fqdn/admin in the Lighttpd external conf file?
Kind Regards,
Jack