A 404 error when trying to access my pi-hole admin dashboard from anywhere

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

https://tricorder.pi-hole.net/7BsONmX2/

Here is my nginx configuration if it is any help:

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:

Would it be an option to run pi-hole with lighttpd on a different port and proxy it through nginx?

What are you trying to accomplish here? What does the proxy through nginx provide?

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.

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