How to Restrict Pi hole Web Interface access to FQDN over HTTPS

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:

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

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.