The issue I am facing:
When I access the admin dashboard from either directly via IP address or from pi.hole or the .local page then I am shown an nginx 404 error. Details about my system:
Raspberry Pi 4b
Nginx reverse proxy
latest pihole version
Ubuntu 22.04 LTS
What I have changed since installing Pi-hole:
Removed lighttpd
Added Nginx
Added jellyfin
Configured both pi-hole and jellyfin to work with nginx
It worked fine til today morning when I powered it off to change where it was located and powered it on and then it stopped working
You are running nginx on port 80. The shipping webserver for Pi-hole (lighttpd) is not able to bind to port 80.
[✗] tcp:0.0.0.0:80 is in use by nginx (https://docs.pi-hole.net/main/prerequisites/#ports)
*** [ DIAGNOSING ]: Pi-hole processes
[✗] lighttpd daemon is inactive
*** [ DIAGNOSING ]: Dashboard headers
[✗] Web interface X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 404 Not Found
Server: nginx/1.18.0 (Ubuntu)
Date: Sat, 22 Jul 2023 18:37:13 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
You have several options; in no particular order:
Uninstall nginx and run lighttpd
Move nginx to a different port and restart lighttpd
Move lighttpd to a different port and restart lighttpd
I have a jellyfin server on the same pi and I want to be able to access that via the .local page but also have the pi-hole on something like pi.local/admin so that I can still configure it
I solved it by uninstalling and reinstalling pi-hole, changing the port for lighttpd to a unused port, and proxying that through nginx alongside jellyfin.