How To Set Up WebDAV With Lighttpd On Debian Etch - Page 2
4 Configure The Virtual Host For WebDAVNow we create the WebDAV password file /var/www/web1/passwd.dav with the user test (the -c switch creates the file if it does not exist): htpasswd -c /var/www/web1/passwd.dav test You will be asked to type in a password for the user test. (Please don't use the -c switch if /var/www/web1/passwd.dav is already existing because this will recreate the file from scratch, meaning you lose all users in that file!) Now we change the permissions of the /var/www/web1/passwd.dav file so that only root and the members of the www-data group can access it: chown root:www-data /var/www/web1/passwd.dav Now we modify our vhost in /etc/lighttpd/lighttpd.conf so that it looks as follows: vi /etc/lighttpd/lighttpd.conf
The alias.url directive makes (together with $HTTP["url"] =~ "^/webdav($|/)") that when you call /webdav, WebDAV is invoked, but you can still access the whole document root of the vhost. All other URLs of that vhost are still "normal" HTTP. Restart lighttpd afterwards: /etc/init.d/lighttpd restart
5 Testing WebDAVWe will now install cadaver, a command-line WebDAV client: apt-get install cadaver To test if WebDAV works, type: cadaver http://www.example.com/webdav/ You should be prompted for a user name. Type in test and then the password for the user test. If all goes well, you should be granted access which means WebDAV is working ok. Type quit to leave the WebDAV shell: server1:~# cadaver http://www.example.com/webdav/
6 Configure A Windows XP Client To Connect To The WebDAV ShareThis is described on http://www.howtoforge.com/setting-up-webdav-with-apache2-on-debian-etch-p2. Please specify the port in the WebDAV URL, e.g. http://www.example.com:80/webdav. For some strange reason this makes Windows XP accept the normal username (e.g. test) - otherwise Windows XP expects NTLM usernames (that would have the form www.example.com\test).
7 Configure A Linux Client (GNOME) To Connect To The WebDAV ShareThis is described on http://www.howtoforge.com/setting-up-webdav-with-apache2-on-debian-etch-p3.
8 Links
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th





print: 
Recent comments
11 hours 32 min ago
17 hours 20 min ago
19 hours 12 min ago
20 hours 56 min ago
1 day 47 min ago
1 day 6 hours ago
1 day 6 hours ago
1 day 11 hours ago
1 day 16 hours ago
1 day 21 hours ago