Sign inSign up

kxn4t/webdav-docker

By kxn4t

Updated over 7 years ago

A simply WebDAV docker image. WebDAV LOCK can also be used.

Image
2

1.2K

kxn4t/webdav-docker repository overview

webdav-docker

A simply WebDAV docker image.
WebDAV LOCK can also be used.
use digest authentication.

Usage

run

docker run -dit --name=webdav -v <path to location>:/usr/local/apache2/uploads -p 8080:80 kxn4t/webdav-docker
non mount (temporary using)
docker run -dit --name=webdav -p 8080:80 kxn4t/webdav-docker

access

http://localhost:8080/uploads

One person is registered as an initial user.
user: admin
pass: test1234

change password

  1. docker exec
    docker exec -it webdav bash

  2. change htdigest
    htdigest "/usr/local/apache2/user.passwd" DAV-upload admin

  3. change password

  4. restart httpd
    httpd -k restart

add user

  1. docker exec
    docker exec -it webdav bash

  2. change httpd-dav.conf
    vim conf/extra/httpd-dav.conf

    <RequireAny>
        Require method GET POST OPTIONS LOCK
        Require user admin <add username>
    </RequireAny>

example:

    <RequireAny>
        Require method GET POST OPTIONS LOCK
        Require user admin kxn4t
    </RequireAny>
  1. add htdigest
    htdigest "/usr/local/apache2/user.passwd" DAV-upload <add username>

  2. restart httpd
    httpd -k restart

License

MIT

Tag summary

Content type

Image

Digest

Size

69.3 MB

Last updated

over 7 years ago

docker pull kxn4t/webdav-docker