From 2f1ab1d67e57e6293e9ccbcf8e386740e2a4cf84 Mon Sep 17 00:00:00 2001 From: xavier skip Date: Sun, 8 May 2022 19:37:51 +0800 Subject: [PATCH 1/4] avoid change config file for the next update. `/etc/lighttpd.lighttpd.conf` show this: # ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE: /etc/lighttpd/external.conf from here: https://raspberrypi.stackexchange.com/questions/52090/how-do-i-change-pi-holes-url-path/117849#117849 --- docs/guides/webserver/caddy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/webserver/caddy.md b/docs/guides/webserver/caddy.md index 569c5de..cedf86d 100644 --- a/docs/guides/webserver/caddy.md +++ b/docs/guides/webserver/caddy.md @@ -6,10 +6,10 @@ 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/lighttpd.conf:` +First, change the listen port in this file: `/etc/lighttpd/external.conf:` ```lighttpd -server.port = 1080 +server.port := 1080 ``` In this case, port 1080 was chosen at random. You can use a custom port. From 3655afb605b5010b36e7c63d1b0a3cf5a20531e9 Mon Sep 17 00:00:00 2001 From: xavier skip Date: Sun, 8 May 2022 20:50:18 +0800 Subject: [PATCH 2/4] 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 From 57fbbceeef5f7e7ed1a1e390b2e568ef6a187b66 Mon Sep 17 00:00:00 2001 From: xavier skip Date: Tue, 10 May 2022 10:33:26 +0800 Subject: [PATCH 3/4] Update docs/guides/webserver/caddy.md THE NEXT PI-HOLE UPDATE. Co-authored-by: yubiuser --- docs/guides/webserver/caddy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/webserver/caddy.md b/docs/guides/webserver/caddy.md index d4246b5..798fbe6 100644 --- a/docs/guides/webserver/caddy.md +++ b/docs/guides/webserver/caddy.md @@ -14,7 +14,7 @@ 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. +BUT ANY CHANGES MADE TO THIS FILE WILL BE LOST ON THE NEXT PI-HOLE 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:` From a2dd698e2183a738cb5b16faae2ce75b092cd9b3 Mon Sep 17 00:00:00 2001 From: xavier skip Date: Tue, 10 May 2022 10:34:07 +0800 Subject: [PATCH 4/4] Update docs/guides/webserver/caddy.md note the different syntax Co-authored-by: yubiuser --- docs/guides/webserver/caddy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/webserver/caddy.md b/docs/guides/webserver/caddy.md index 798fbe6..0065299 100644 --- a/docs/guides/webserver/caddy.md +++ b/docs/guides/webserver/caddy.md @@ -16,7 +16,7 @@ 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 PI-HOLE 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:` +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: `/etc/lighttpd/external.conf` (note the different syntax!): ```lighttpd server.port := 1080