Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighttpd server.port parameter set to 80 when updating PI-Hole #4400

Closed
jeanbruder opened this issue Oct 20, 2021 · 4 comments
Closed

Lighttpd server.port parameter set to 80 when updating PI-Hole #4400

jeanbruder opened this issue Oct 20, 2021 · 4 comments

Comments

@jeanbruder
Copy link

Versions

  • Pi-hole version is tweak/local_dns_cname v5.4-49-ga872fabe (Latest: v5.5)
  • AdminLTE version is v5.7 (Latest: v5.7)
  • FTL version is v5.10.2 (Latest: v5.10.2)

Platform

  • OS and version: Debian bookworm/sid, kernel 5.10.60-sunxi64 @ aarch64
  • Platform: Rock64

Expected behavior

If the Lighttpd server.port parameter is changed (not TCP/80), this parameter should be preserved during the PI-Hole update.

Actual behavior / bug

Lighhtpd server.port is set to 80, changing the manually set listening port.

Steps to reproduce

Steps to reproduce the behavior:

  1. Change the server.port parameter in the /etc/lighttpd/lighttpd.conf to another value than 80,
  2. Update PI-Hole with "pihole -up",
  3. Verify the server.port value : changed to 80

Debug Token

Screenshots

N/A

Additional context

N/A

@yubiuser
Copy link
Member

rockpi@rockpi-4b:/etc/pihole$ cat /etc/lighttpd/lighttpd.conf
# Pi-hole: A black hole for Internet advertisements
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# Lighttpd config for Pi-hole
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.

###############################################################################
#     FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE INSTALL/UPDATE PROCEDURE.     #
# 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                         #
###############################################################################

See the header of the file... use external.conf instead.

@PromoFaux
Copy link
Member

Just a note on using external.conf, make sure to use the correct syntax to replace the port:

https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration#BNF-like-notation-of-the-basic-syntax

@jeanbruder
Copy link
Author

Once again, many thanks and as always : RTFM ...

@pralor-bot
Copy link

This issue has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants