In raising this issue, I confirm the following: {please fill the checkboxes, e.g: [X]}
How familiar are you with the the source code relevant to this issue?:
1
Expected behaviour:
I want to open WebUI using FQHN.
Please check this screenshot for details.
Actual behaviour:
When opening WebUI using FQHN I get this error:
Access to the following website has been denied.
Steps to reproduce:
Use FQHN to access WebUI.
Debug token provided by uploading pihole -d log:
9v4rv6ejzq
Troubleshooting undertaken, and/or other relevant information:
-
Opening WebUI using server's IP works w/o issues.
The web interface only allows access via pi.hole, localhost, 127.0.0.1, and the IP address. If you want to access it from another domain, you will have to add this to /etc/lighttpd/external.conf:
setenv.add-environment = (
"VIRTUAL_HOST" => "your.fqdn.here"
)
If you add "/admin" to your FQDN, it should work:
ct-101-pihole.[...].lan/admin
Solution of @stitch10925 is working perfectly for me.
Therefore I won't modify the Lighttpd config.
THX