selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
webdav logo

Self-host webdav

v5.17.3

Standalone WebDAV server with per-user path permissions

ReleaseOpen SourceMIT
brew install webdav
Updated2 weeks ago
LanguageGo
Setup difficultyEasy
Stars
5 986
Port
6065 (WebDAV HTTP/HTTPS server)
Docker
ghcr.io/hacdias/webdav

What is webdav?

webdav is a WebDAV server built in Go that exposes a folder over the DAV protocol on your own hardware. It offers multi-user basic authentication with plaintext or bcrypt-hashed passwords, and credentials can be read from environment variables. Per-user rules control Create, Read, Update and Delete access by path prefix or regular expression, users can be mapped to their own directories, and several directories can be mounted as virtual roots. Additional capabilities include direct TLS termination, an optional HTML page that lists folder contents on GET requests, CORS settings, SabreDAV-style PATCH partial file updates, and console or JSON logging that Fail2Ban can watch to block brute-force sign-ins. Install it from release binaries, Homebrew, or go install, or run the Docker/Compose images with a settings file in YAML, JSON, or TOML format. The README also shows Nginx and Caddy reverse-proxy setups, including serving from a subpath.

Should you self-host webdav?

webdav scores 66/100 on selfhost.directory (how scoring works) and ranks #14 of 90 in File Sharing. It has 5 986 GitHub stars, +78 in the last 30 days.

It shipped 24 stable releases in the past year. The latest, v5.17.3, came out on 30 October 2026. New versions land roughly every 10 days.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is copyparty (82/100, 47 352 stars). It scores higher overall, so compare the two before you pick. See webdav vs copyparty side by side.

Features

  • Basic Authentication
  • Bcrypt password hashing
  • Built-in TLS
  • CORS Configuration
  • Delegated authentication
  • Environment-sourced credentials
  • Fine-grained path permissions
  • HTML directory listing
  • Multiple virtual root directories
  • Partial file updates (PATCH)
  • Per-user directories
  • Regex-based access rules
  • Reverse Proxy Support
  • Structured Logging
  • WebDAV file serving

webdav README

webdav

Version Release Downloads GHCR Pulls Docker Pulls

A simple and standalone WebDAV server.

Install

For a manual install, please refer to the releases page and download the correct binary for your system. Alternatively, you can build or install it from source using the Go toolchain. You can either clone the repository and execute go build, or directly install it, using:

How to install webdav

Install webdav with Docker

# GitHub Registry
docker pull ghcr.io/hacdias/webdav:latest

# Docker Hub
docker pull hacdias/webdav:latest

Run with a config file and mounted data directory, e.g. `docker run -p 6065:6065 -v ./config.yml:/config.yml:ro -v ./data:/data ghcr.io/hacdias/webdav -c /config.yml`.

How to configure webdav

  • addressAddress the server binds to.
  • port6065Port the server listens on.
  • tlsfalseTLS-related settings if you want to enable TLS directly.
  • certTLS certificate file.
  • keyTLS key file.

webdav releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in File Sharing

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…