Monday, February 28, 2005
Setup a Fedora Linux WebDAV server for iCal sharing
Based on: http://electronworks.com/dav/dav-jag.txt
Modified for: Fedora Linux Core 3 with Apache 2.0.52
1. Edit your Apache config file:
sudo vi /etc/httpd/conf/httpd.conf (example)
2. Verify that the following lines exist and are uncommented to enable Apache's use of WebDAV:
LoadModule dav_module modules/mod_dav.so
DAVLockDB /var/lib/dav/lockdb
3. Add Apache security management of our WebDAV directory so that file and directory access attempts will be password protected:
<Directory "/mywebfilespath/webdav/">
DAV On
DAVMinTimeout 600
DAVDepthInfinity On
AllowOverride AuthConfig
AuthName "DAV Restricted"
AuthType Basic
AuthUserFile /etc/httpd/.htaccess
Require valid-user
</Directory>
4. Create the 'AuthUserFile' with a specified username and password:
sudo htpasswd -m -c /etc/httpd/.htaccess davuser
5. Create the directory where your iCal calendar will be stored and set permissions:
sudo mkdir /mywebfilespath/webdav
sudo chmod -R 777 /mywebfilespath/webdav
6. Restart Apache:
sudo /etc/rc.d/init.d/httpd restart
From this point, you should be able to set up a new iCal calendar and publish it out to:
http://mydomain.net/webdav/iCal/
Be sure to use the username and password specified during Step #5. Use iCal's handy "Send Publish Email..." menu option to send out notices to those you wish to share your calendar with.
Modified for: Fedora Linux Core 3 with Apache 2.0.52
1. Edit your Apache config file:
sudo vi /etc/httpd/conf/httpd.conf (example)
2. Verify that the following lines exist and are uncommented to enable Apache's use of WebDAV:
LoadModule dav_module modules/mod_dav.so
DAVLockDB /var/lib/dav/lockdb
3. Add Apache security management of our WebDAV directory so that file and directory access attempts will be password protected:
<Directory "/mywebfilespath/webdav/">
DAV On
DAVMinTimeout 600
DAVDepthInfinity On
AllowOverride AuthConfig
AuthName "DAV Restricted"
AuthType Basic
AuthUserFile /etc/httpd/.htaccess
Require valid-user
</Directory>
4. Create the 'AuthUserFile' with a specified username and password:
sudo htpasswd -m -c /etc/httpd/.htaccess davuser
5. Create the directory where your iCal calendar will be stored and set permissions:
sudo mkdir /mywebfilespath/webdav
sudo chmod -R 777 /mywebfilespath/webdav
6. Restart Apache:
sudo /etc/rc.d/init.d/httpd restart
From this point, you should be able to set up a new iCal calendar and publish it out to:
http://mydomain.net/webdav/iCal/
Be sure to use the username and password specified during Step #5. Use iCal's handy "Send Publish Email..." menu option to send out notices to those you wish to share your calendar with.
very usefull info.
But my requirement is diffrent.
I want webdav should authenticate via PAM.
How will you do this."