Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zoonderkins/0d775195a3c63ae6e228223d4fae3da4 to your computer and use it in GitHub Desktop.
Save zoonderkins/0d775195a3c63ae6e228223d4fae3da4 to your computer and use it in GitHub Desktop.
Caddy webdav for multiple user with its own directory on Linux

Caddy Webdav for Multiple users with their own directory + password auth on Linux

route /dav* {
	rewrite /dav /dav/
	basicauth {
		bob <password>
		alice <password>
	}

	root * /home/webdav/{http.auth.user.id}

	webdav {
		prefix /dav
	}
}

Reference

  1. https://caddy.community/t/webdav-multiuser/14932/6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment