(16-Jul-2019, 05:14 PM)davem Wrote:(16-Jul-2019, 04:23 PM)agent_kith Wrote:(16-Jul-2019, 03:04 PM)davem Wrote: Hi
Unfortunately I am still having issues with pihole playing with snakeoil.
Since the last update, I have updated snakeoil twice to 1.1.6 and I am almost 100% certain that a snakeoil update had removed all the pihole web files from /var/www/html/admin (the html dir was removed) . After reinstalling & reconfiguring & rebooting repeatedly I have pihole admin working but I have totally lost the snakeoil gui ! The files are still there and even if I point my browser to x.x.x.x/index.html it still presents the pihole admin page.
As nice as it is to have the pihole admin page, I think that I really need to have the snakeoil GUI back. And ideally not break with every update.
Any suggestions on what I can do to get these 2 playing nicely ?
How good are you with lighttpd configuration? That's the webserver Snakeoil is using.
What you need to do is to install the pihole (/admin) folder as /var/www/pihole, instead of in /var/www/html. And configure lighttpd to use /var/www/pihole when you browse to the URL http://snakeoil.local/admin
This needs to be setup in /etc/lighttpd/conf-available, and then linked to the /etc/lighttpd/conf-enabled folder.
Excellent - thanks for the tip. Will have a hack at it and report back.
got it working. Had to restore the original snakeoil lighttpd.conf file and then edit it to add a redirect which I eventually tuned to;
url.redirect = ( "/pihole$" => "http://10.1.1.2/pihole/admin/index.php" )
Copied to lighttpd.conf to external.conf as pihole says it rewrites it on update....Everything works fine now. Just need to test that it survives updates from both snakeoil and pihole. But now that I know, its an easy fix if it doesnt.
Hopefully that is of use to someone.
cheers