Skip to content

Commit

Permalink
fix: Switch to debian based apache image for webdav-apache due to mis…
Browse files Browse the repository at this point in the history
…sing webdav on alpine

ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13112
ref: docker-library/httpd#201

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Feb 1, 2024
1 parent 7169f70 commit 8b39582
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webdav-apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions webdav-apache/webdav.conf
Original file line number Diff line number Diff line change
@@ -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"

<Location /webdav/>
DAV on
Expand Down

0 comments on commit 8b39582

Please sign in to comment.