# Apache WebDAV

Apache WebDAV is a lightweight WebDAV (Web Distributed Authoring and Versioning) server for self-hosted file access. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/206/apache-webdav

## Description

Apache WebDAV is a lightweight WebDAV (Web Distributed Authoring and Versioning) server for self-hosted file access. It exposes a directory over HTTP so compatible clients can browse, upload, download, and synchronize files. It is aimed at homelab users who want a simple, low-configuration file-sharing endpoint without a full cloud suite. Use it when a minimal Apache-based WebDAV server is sufficient and you already have a WebDAV client; it does not include a browser web interface.

## Platform availability

Available on 1 of 9 platforms: Unraid.

## Health score

17/100 (Low), based on 3 of 4 factors.
- Maintained: 0 (last commit 1686 days ago)
- Popular: 31 (33 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)

## Links

- Docker Hub: https://hub.docker.com/r/apachewebdav/apachewebdav
- Unraid: https://ca.unraid.net/apps/apache-webdav-13hu50x1gtdn05?q=Apache-WebDAV
- GitHub: https://github.com/mgutt/docker-apachewebdav

## Common questions

### How can I put the WebDAV container behind a reverse proxy for HTTPS?

Use a reverse proxy to handle SSL certificates, or set SSL_CERT=selfsigned to generate a self-signed certificate. You can also bind-mount a certificate chain to /cert.pem and a private key to /privkey.pem.

### How do I support multiple usernames and passwords?

USERNAME and PASSWORD support only a single user. Bind-mount your own file to /user.passwd and populate it with htpasswd for Basic authentication or htdigest for Digest authentication.

### Which directories should I volume-mount for files and container state?

Mount the exposed files to /var/lib/dav/data and the container's app data to /var/lib/dav.

### What port does the basic container expose?

The basic example runs the WebDAV server on port 80.

### What does the 'Could not open the lock database' error mean?

It means the Apache user and group do not have write access to the lock database file and its directory.

---
Source: Our Local Host (https://ourlocalhost.com/app/206/apache-webdav), the self-hosted and open-source app directory.
