WebDAV Server
A simple webdav server with basic auth using Golang.
Files and Folders
- keygen : OpenSSL to create certificates
- pem : Cert files in here
- storage : Service storage
- win_conn_example : Batch files for connection in windows explorer
- server.go : WebDAV server
Build
- Download repo and run
go build
at root of downloaded repo
Access Control
- Please modify or expand codes after comment -
Check credential
inserver.go
- With current source, you may cannnot enter to
/webdav/folder2
Create certificates
Via HTTPS, you should create or have your own certificates.
- Create and copy certs as below.
cd keygen
keygen.cmd
move *.pem ../pem/
Open in MS-Windows Explorer
- If you use
RMB > Map Network Drive...
in explorer window, You should enableConnect using different credentials
. Better to use command inwin_conn_example/add_webdav.cmd
- Via HTTP, you should modify set in registry as below.
regedit > HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
BasicAuthLevel to 2
- Via HTTPS
- See files in win_conn_example
Run or open in other OS
I hope that you can do it yourself well. ^_^
License
Public domain. Use at your own risk.