Its IMHO a good idea to (automatically = zero conf) share all SMB-Folders also as webDAV. Here are some advantages of webDAV
More informations here: http://www.webdav.orgLocking (concurrency control): long-duration exclusive and shared write locks prevent the overwrite problem, where two or more collaborators write to the same resource without first merging changes. To achieve robust Internet-scale collaboration, where network connections may be disconnected arbitrarily, and for scalability, since each open connection consumes server resources, the duration of DAV locks is independent of any individual network connection.
Properties: XML properties provide storage for arbitrary metadata, such as a list of authors on Web resources. These properties can be efficiently set, deleted, and retrieved using the DAV protocol. DASL, the DAV Searching and Locating protocol, provides searches based on property values to locate Web resources.
Namespace manipulation: Since resources may need to be copied or moved as a Web site evolves, DAV supports copy and move operations. Collections, similar to file system directories, may be created and listed.
My example of 2 shares:
Code: Select all
#<VirtualHost *:443>
<IfModule mod_dav.c>
# Its not necessary to load this modules, as they should be already loaded
# LoadModule dav_module mod_dav.so
# LoadModule dav_fs_module mod_dav_fs.so
# LoadModule ssl_module mod_ssl.so
DavLockDB /var/hda/webdav/locks/DAVLocks
LimitXMLRequestBody 131072
# Not necessary, as long as Port 443 is free to use.
# NameVirtualHost *:443
# My first share "downloads"
Alias /downloads "/var/hda/files/downloads"
<Directory /var/hda/files/downloads>
SSLRequireSSL
Dav On
#erzwingt, dass alles "normal" abgespeichert wird, auch Skripte
# ForceType text/plain
Options +Indexes
IndexOptions FancyIndexing
AddDefaultCharset UTF-8
AuthType Basic
AuthName "WebDAV Server"
AuthUserFile /var/hda/webdav/users/passwd.users
Require valid-user
Order allow,deny
Allow from all
# Keine .htaccess-Dateien erlauben
AllowOverride None
</Directory>
# My second share "music"
Alias /music "/var/hda/files/music"
<Directory /var/hda/files/music>
SSLRequireSSL
Dav On
#erzwingt, dass alles "normal" abgespeichert wird, auch Skripte
ForceType text/plain
Options +Indexes
IndexOptions FancyIndexing
AddDefaultCharset UTF-8
AuthType Basic
AuthName "WebDAV Server"
AuthUserFile /var/hda/webdav/users/passwd.users
Require valid-user
Order allow,deny
Allow from all
AllowOverride None
</Directory>
# I encountered some problems with my own certificates. It seems like, there are already some certificates.
#SSLEngine on
#SSLCertificateFile /etc/httpd/ssl/httpd.pem
#SSLCertificateKeyFile /etc/httpd/ssl/httpd.key
</IfModule>
#</VirtualHost>
It seems like there are already certificates:
Code: Select all
[root@hda httpd]# cadaver https://hda.home.lan/downloads
WARNING: Untrusted server certificate presented for `hda.home.lan':
Issued to: SomeOrganizationalUnit, SomeOrganization, SomeCity, SomeState, --
Issued by: SomeOrganizationalUnit, SomeOrganization, SomeCity, SomeState, --
Certificate is valid from Wed, 21 Dec 2011 22:21:40 GMT to Thu, 20 Dec 2012 22:21:40 GMT
Do you wish to accept the certificate? (y/n) y
Authentication required for WebDAV Server on server `hda.home.lan':
Username: administrator
Password:
dav:/downloads/> ls
Listing collection `/downloads/': succeeded.
Coll: .BitTornado 0 Okt 21 18:13
Coll: .Trash-1000 0 Nov 15 20:07
Coll: .Trash-500 0 Dez 23 11:28
Coll: .config 0 Okt 22 02:18
Coll: .fluxd 0 Nov 14 21:04
Coll: .pki 0 Okt 22 02:18
Coll: .rsscache 0 Nov 4 10:37
Coll: .transfers 0 Jan 12 22:19
...
the user has to create (manually) accounts and passwords. How can I use an existing database? And where is this databse?