pi-hole/pi-hole

missing redirection to http://pihole.FQDN/admin/

t0b3 opened this issue · 3 comments

t0b3 commented

Observed behaviour
For serving http://pihole.FQDN/admin/ nor http://192.168.x.y/admin/ neither http://pi.hole/admin/ etc. there is no domain restriction - but contraintuitively the forwarding to /admin/ only happens on http://pi.hole/

Expected behaviour
Consistent forwarding on any of the served domains

may we skip this host check?

$HTTP["host"] == "pi.hole" {

This was a deliberate decision. Users may host other stuff at http://192.168.x.y so we do not enforce the redirect for hosts other than pi.hole

t0b3 commented

hmm, can I override this permanently by adding yet another file i.e. /etc/lighttpd/conf-enabled/95-redirect-admin.conf ?

You should be able to do that. Yoi should be able to set multiple

 $HTTP["host"] == "XXXX"

configurations. See the example at https://redmine.lighttpd.net/projects/1/wiki/docs_configuration

Best would be if you just go ahead and try it....