From 8b39582ac2adadc2d451cae1f5a52d13d163e4b8 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 1 Feb 2024 01:43:04 +0100 Subject: [PATCH] fix: Switch to debian based apache image for webdav-apache due to missing webdav on alpine ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13112 ref: https://github.com/docker-library/httpd/issues/201 Signed-off-by: Ferdinand Thiessen --- webdav-apache/Dockerfile | 4 +++- webdav-apache/webdav.conf | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/webdav-apache/Dockerfile b/webdav-apache/Dockerfile index 3d88ce29..320166a4 100644 --- a/webdav-apache/Dockerfile +++ b/webdav-apache/Dockerfile @@ -1,7 +1,9 @@ -FROM httpd:alpine +FROM httpd:latest # Create webdav directory RUN mkdir -p /usr/local/apache2/webdav; chown www-data /usr/local/apache2/webdav +# Create lock DB directory +RUN mkdir -p /usr/local/apache2/var; chown www-data /usr/local/apache2/var # Copy config COPY ./webdav.conf /usr/local/apache2/conf/webdav.conf # Add password file diff --git a/webdav-apache/webdav.conf b/webdav-apache/webdav.conf index 633a3134..6db16850 100644 --- a/webdav-apache/webdav.conf +++ b/webdav-apache/webdav.conf @@ -1,7 +1,9 @@ LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so +LoadModule dav_lock_module modules/mod_dav_lock.so Alias /webdav /usr/local/apache2/webdav +DavLockDB "/usr/local/apache2/var/DavLock" DAV on