I run a multi purpose Pi (Ubuntu 24) with a RetroPie install, a website served publicly, and among others, pihole. I have lighttpd installed anyway, so I do not need the built in server of pihole.
I would rather like to use my own webserver, which serves my website anyway. I would like to run the web interface of pihole by just adding /admin to my URL, like it was possible before.
I would like to know how to serve the .lp-files inside /admin with my own lighttpd server. Is that possible? I would just need some kind of parsing / configuration hint for lighttpd ...
How to serve the .lp-files inside /admin with my own lighttpd server
You can't.
Even if you configure lighttpd to correctly serve .lp pages written in Lua, lighttpd won't be able to retrieve some information from FTL.
The new web server is Pi-hole itself (pihole-FTL).
The pages use some internal functions to retrieve information directly from FTL. There is no way to configure a different web server to do that.
You will need a reverse proxy for that.
You can search how to configure lighttpd as a reverse proxy.
2025-03-11 22:57:29: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:04:58: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:06:25: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:06:27: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:08:14: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:18:07: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:25:34: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:25:36: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:27:01: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:27:02: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:30:29: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:32:47: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:42:59: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:43:00: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:43:37: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:43:38: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:49:26: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:49:27: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:50:28: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:50:29: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:51:58: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:53:09: (server.c.1704) server started (lighttpd/1.4.69)
2025-03-11 23:53:59: (server.c.2078) server stopped by UID = 0 PID = 1
2025-03-11 23:54:00: (server.c.1704) server started (lighttpd/1.4.69)
I had no special configuration for pihole with my lighttpd install. What is in config is needed for my website. /admin directory was served out of the box previously, just because it was placed in my web root
Anyway, thank you for your replies, and I will continue with some testing as soon I find time.