Pi-hole: Cannot open WebUI using FQHN

Created on 8 Oct 2018  路  3Comments  路  Source: pi-hole/pi-hole

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.

Not a bug Issue

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

githubsaturn picture githubsaturn  路  3Comments

robotsandcake picture robotsandcake  路  5Comments

flannelhead picture flannelhead  路  4Comments

davidreverett picture davidreverett  路  4Comments

Solaris17 picture Solaris17  路  5Comments