From ac70140fad075e84a0287eeaae89e0fe8cc7942a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannik=20R=C3=B6del?= Date: Sun, 15 Jun 2025 17:09:50 +0200 Subject: [PATCH] Fix error related to lighttpd MIME type handling lighttpd wouldn't start, erroring with something like (../src/configfile.c.2449) include file not found: /etc/lighttpd/mime-types.conf (../src/configfile.c.2256) source: /httpd.conf line: 10 pos: 0 parser failed somehow near here: (EOL) This is because the alpine packaging for lighttpd has moved away from including this file in the default setup [1]. It doesn't seem to be needed anymore, so it can probably go. [1]: https://gitlab.alpinelinux.org/alpine/aports/-/commit/632d675ea8542019db6de9c055b85bab009d2ec7 --- Dockerfile | 1 - sites/angestoepselt/httpd.conf | 2 -- sites/coderdojo/httpd.conf | 2 -- 3 files changed, 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5b599f6..e69de3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,6 @@ COPY sites/${SITE}/httpd.conf /httpd.conf COPY sites/${SITE}/_data/config.json /config.json RUN sed -i \ - -e "s,@mimetypes@,/etc/lighttpd/mime-types.conf,g" \ -e "s,@python@,/usr/local/bin/python,g" \ -e "s,@site@,/www,g" \ -e "s,@cgibin@,/cgi-bin,g" \ diff --git a/sites/angestoepselt/httpd.conf b/sites/angestoepselt/httpd.conf index 3b9cbe7..9c395e6 100644 --- a/sites/angestoepselt/httpd.conf +++ b/sites/angestoepselt/httpd.conf @@ -5,8 +5,6 @@ server.port = 80 # See here: https://redmine.lighttpd.net/boards/2/topics/8382 accesslog.filename = "/dev/fd/3" -include "@mimetypes@" - server.document-root = "@site@" index-file.names = ( "index.html" ) diff --git a/sites/coderdojo/httpd.conf b/sites/coderdojo/httpd.conf index 8820c34..6949e8e 100644 --- a/sites/coderdojo/httpd.conf +++ b/sites/coderdojo/httpd.conf @@ -5,8 +5,6 @@ server.port = 80 # See here: https://redmine.lighttpd.net/boards/2/topics/8382 accesslog.filename = "/dev/fd/3" -include "@mimetypes@" - server.document-root = "@site@" index-file.names = ( "index.html" )