|
This is a how-to on using webdav on apache. Webdav allows users to
access there files across the internet as if they are using a file
system to access the files stored on your home directory in the network. Name: Apache HomePage: http://www.apache.org/ Function: Webserver Name: OpenSSL HomePage: http://www.openssl.org/ Function: developed for transmitting private documents via the Internet using cryptographic a system
1. Before we start this we should make our apache server use ssl certs to protect our passwords and usernames passing over the internet in clear text. click here 2. First lets make a directory in apache mkdir /var/www/html/webdav 3. Now lets set ownership permissions chown apache:apache /var/www/html/webdav chmod a+rwx /var/www/html/webdav  4. Make sure the following modules are being loaded in apache nano /etc/httpd/conf/httpd.conf
httpd.conf:
LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so
|
 5. Now uncomment the following lines from httpd.conf
nano /etc/httpd/conf/httpd.conf httpd.conf:
<IfModule mod_dav_fs.c> # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb </IfModule>
|
 6. Also make sure these lines are in your httpd.conf file
nano /etc/httpd/conf/httpd.conf
httpd.conf:
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully BrowserMatch "^gnome-vfs" redirect-carefully
|
 7. Now we need to make our directory visible using apache
nano /etc/httpd/conf/httpd.conf
httpd.conf:
<Directory /var/www/html/webdav> Dav on AuthName "WebDAV access" AuthType basic AuthUserFile /etc/httpd/conf/htpasswd require valid-user </Directory>
|
 8. Now that we have setup apache to use webdav we need to make our password file. htpasswd -c /etc/httpd/conf/htpasswd your-user-name
 9. Once you have made the htpasswd file you can add other users to it htpasswd /etc/httpd/conf/htpasswd another-user-name
 10. Now you can access the site by going opening Internet Explorer and press File/open then enter the following address https://ip-address-of-your-apache-server/webdav/ and choose the tick box 'Open as web folder'
BookMarking:
cell1
|
|
cell3 |
|
cell4
|
|
Trouble Shooting:
Go to the wiki page Go to the 'Contact Us ' Forum Go to the how-to's Support Forum
External Links:
http://www.howtoforge.com/faq/14_63_en.html |