Configure a WebDAV enabled webserver for multiple user folders and one shared folder
DAVLockDB /serv/webdav.example.org/auth/DAVLock DAVMinTimeout 180 NameVirtualHost 10.1.1.1 <VirtualHost webdav.example.org> ServerName webdav.example.org ServerAdmin webmaster@example.org DocumentRoot /serv/webdav.example.org/htdocs/ LogLevel warn ErrorLog /serv/webdav.example.org/logs/error.log CustomLog /serv/webdav.example.org/logs/access.log combined # user1 Alias /user1 /serv/webdav.example.org/webdav/user1 <Directory /serv/webdav.example.org/webdav/user1> DAV On AuthType Basic AuthName "My WebDav Directory" AuthUserFile /serv/webdav.example.org/auth/webdav.user Require valid-user </Directory> <Location /user1/> Require user user1 </Location> # user2 Alias /user2 /serv/webdav.example.org/webdav/user2 <Directory /serv/webdav.example.org/webdav/user2> DAV On AuthType Basic AuthName "My WebDav Directory" AuthUserFile /serv/webdav.example.org/auth/webdav.user Require valid-user </Directory> <Location /user2/> Require user user2 </Location> # transfer Alias /transfer /serv/webdav.example.org/webdav/transfer <Directory /serv/webdav.example.org/webdav/transfer> DAV On AuthType Basic AuthName "My WebDav Directory" AuthUserFile /serv/webdav.example.org/auth/webdav.user Require valid-user </Directory> <Location /transfer/> Require valid-user </Location> </VirtualHost>