From 3655afb605b5010b36e7c63d1b0a3cf5a20531e9 Mon Sep 17 00:00:00 2001 From: xavier skip Date: Sun, 8 May 2022 20:50:18 +0800 Subject: [PATCH] update caddy.md A permanent method of changing the lighttpd port (for lighttpd version 1.4.46 or later) https://discourse.pi-hole.net/t/web-interface-not-working-after-upgrade/53994 --- docs/guides/webserver/caddy.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/guides/webserver/caddy.md b/docs/guides/webserver/caddy.md index cedf86d..d4246b5 100644 --- a/docs/guides/webserver/caddy.md +++ b/docs/guides/webserver/caddy.md @@ -6,14 +6,22 @@ If you'd like to use [Caddy](https://caddyserver.com/) as your main web server w ## Modifying lighttpd configuration -First, change the listen port in this file: `/etc/lighttpd/external.conf:` +First, change the listen port in this file: `/etc/lighttpd/lighttpd.conf:` + +```lighttpd +server.port = 1080 +``` + +In this case, port 1080 was chosen at random. You can use a custom port. + +BUT ANY CHANGES MADE TO THIS FILE WILL BE LOST ON THE NEXT UPDATE. + +So if you want a permanent method of changing the lighttpd port and your lighttpd version >= 1.4.46, you can overwrite the port in file: `/etc/lighttpd/external.conf:` ```lighttpd server.port := 1080 ``` -In this case, port 1080 was chosen at random. You can use a custom port. - Next, restart the lighttpd server with either of these commands: ```bash