400 Bad Request - Buster, Pi4 4GB

Expected Behaviour:

When going to PiHole (via IP address or pi.hole) lighttpd should automatically redirect to /pihole/index.php

Actual Behaviour:

400 Bad Request

Debug Token:

https://tricorder.pi-hole.net/x329j5mn4x

Additional Information

LIGHTTPD/Error.log shows the following

2019-08-16 23:59:44: (server.c.1464) server started (lighttpd/1.4.53)
2019-08-16 23:59:44: (server.c.1493) WARNING: unknown config-key: alias.url (ignored)
2019-08-17 00:01:07: (response.c.404) uri-path does not begin with '/': pihole/index.php -> 400
2019-08-17 00:01:07: (response.c.404) uri-path does not begin with '/': pihole/index.php -> 400
2019-08-17 00:01:08: (response.c.404) uri-path does not begin with '/': pihole/index.php -> 400
2019-08-17 00:01:09: (response.c.404) uri-path does not begin with '/': pihole/index.php -> 400
2019-08-17 00:01:09: (response.c.404) uri-path does not begin with '/': pihole/index.php -> 400
2019-08-17 00:01:09: (response.c.404) uri-path does not begin with '/': pihole/index.php -> 400

Currently running latest firmware on Pi4 4GB.
apt-get update && apt-get upgrade have been done

Repairing PiHole install leads to no change

Apply the fix in the PR Fix for 404 error when browsing to pi.hole (without /admin) by Forceflow · Pull Request #2826 · pi-hole/pi-hole · GitHub

Edit /etc/lighttpd/lighttpd.conf to modify the following line:

server.error-handler-404    = "/pihole/index.php"
1 Like

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