Saturday, 15 September 2012

Setting up WEBDAV to share files over the Wifi (for a linux server - behind the firewall - i.e. using network addresses only).



Setup Apache2 if not installed, 
Also - make sure you enable the dav modules on apache2

a2enmod dav
a2enmod dav_fs
/etc/init.d/apache2 restart
 
1. Enter the following in httpd.conf (httpd.conf can be found in /etc/apache2 or elsewhere - depends on how apache was installed)

Alias /mywebdav /YourDirectory/
<Location /mywebdav>
Dav On
Order Allow,Deny
Allow from all
AuthType Digest
AuthName "Remote Drive"
AuthUserFile /YourDirectory/user.passwd
 require user tony
</Location>

2.
 htdigest -c "/YourDirectory/user.passwd" "Remote Drive" YourUser
(enter your password for YourUser)
3.
/etc/init.d/apache2 reload
 
4.aptitude install cadaver
 
5.cadaver http://192.168.1.17/mywebdav
(please install cadaver - it will test access to your webdav filesystem out before setting up your phone)
 access problems can be - mispelt names, apache2 cannot access your directory etc..)
 
6. On your nokia symbian phone - E72 E6 etc.. use the File Mgr
Options-> Remote Drive -> Map new drive 
Name: mywebdav
Address:  http://192.168.1.17/mywebdav
UserName: YourUser
Password: 


You can now move files between your server/nas and your phone!  

No comments:

Post a Comment