pihole webpage giving 400 bad request error

check your timezone cuz it s right for me(the debug timing)mine is gmt+5:clock1030:
command output
Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Sep 12 16:09:41 2019 from 192.168.1.25
pi@raspberrypi:~$ grep server.error-handler-404 /etc/lighttpd/lighttpd.conf
server.error-handler-404 = "/pihole/index.php"
pi@raspberrypi:~$

My timezone is not a factor in the output of your Pi-Hole log. The times shown in your log are in your timezone.

Try this - repair pihole and then post a new debug log.

pihole -r and select "repair"

I mean your local time may be 3 hours ahead

anyway:the new debug log:
https://tricorder.pi-hole.net/iyjaonqptm

The edits to your /etc/lighttpd/lighttpd.conf are not being saved.

sudo lighttpd -p -f /etc/lighttpd/lighttpd.conf | grep 404 will show what lighttpd is seeing as it's configuration.

II changed it. but now I see a conection refused error when I try to open the webpage from my android tv browser

yep, that was after a repair

check the new debug code

What does that command display?

that comand said that it was pihole/index.php

so, I changed t to /pihole/index.php and saved, checked it again and restarted the service.

You should only need to make the change once and it should stay. If you are having to repeatedly change the file (at least 3 times so far in this thread) then you have a problem with the filesystem or the SDCard is no longer functional.

nah, last time i didnt save it.

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