# WebDAV

<span style="color: #3366ff;">**Overview**</span>

<span style="color: #ffcc00;">As an alternative to the web browser, Web File Share can be also accessed with a standards-compliant WebDAV application. This can be useful for managing the remote files as they were folders on the local computer.</span>

### WebDAV client programs tested with Web File Share:

As an alternative, Web File Share can be also accessed with a standards-compliant WebDAV application. This can be useful for managing the remote files as they are folders on the local computer.

WebDAV client programs tested with Web File Share:

<table border="1" cellpadding="3" cellspacing="0" id="bkmrk-program-name-operati"><tbody><tr><td>Program Name</td><td>Operating System</td><td>License</td><td>Notes</td></tr><tr><td>MacOS Finder</td><td>MacOS</td><td>-</td><td>Guide available down on this page.</td></tr><tr><td>[Cyberduck](http://cyberduck.ch/ "http://cyberduck.ch/")</td><td>MacOS</td><td>Free</td><td> </td></tr><tr><td>[WebDrive](http://bit.ly/Z3HWau "http://bit.ly/Z3HWau")</td><td>Windows/MacOS</td><td>Free Trial</td><td>Recommended by Web File Share!</td></tr><tr><td>[NetDrive](http://bit.ly/9X4qXq "http://bit.ly/9X4qXq")</td><td>Windows</td><td>Free For Personal Use</td><td> </td></tr><tr><td>[Bit Kinex](http://www.bitkinex.com/ "http://www.bitkinex.com")</td><td>Windows</td><td>Free</td><td> </td></tr><tr><td>[CloudSafe WebDAV Client](http://bit.ly/R2juBK "http://bit.ly/R2juBK")</td><td>Windows</td><td>Free/Unknown</td><td>It is designed to work with CloudSafe.com service, but has been successfully tested with Web File Share</td></tr><tr><td>[IT Hit "Map Drive"](http://bit.ly/ZdzBkL "http://bit.ly/ZdzBkL")</td><td>Windows</td><td>Commercial</td><td> </td></tr><tr><td>[GoodSync](http://bit.ly/65Mz "http://bit.ly/65Mz")</td><td>Windows/MacOS/Android/iOS</td><td>Free/Pro versions</td><td>Good for two-ways folder synchronization</td></tr><tr><td>[WebDAV File Manager](https://play.google.com/store/apps/details?id=jp.ddo.shigadroid.webdavfilemanager "https://play.google.com/store/apps/details?id=jp.ddo.shigadroid.webdavfilemanager")</td><td>Android</td><td>Free</td><td> </td></tr><tr><td>[WebDAV Navigator](https://itunes.apple.com/us/app/webdav-navigator/id382551345?mt=8 "https://itunes.apple.com/us/app/webdav-navigator/id382551345?mt=8")</td><td>iOS</td><td>Free</td><td> </td></tr><tr><td>[WebDAV-Sync](http://sourceforge.net/projects/webdav-sync/ "http://sourceforge.net/projects/webdav-sync/")</td><td>Any (Java)</td><td>Open-source</td><td>Command-line tool for two-ways folder synchronization. Works great.</td></tr><tr><td>[DAVbox](http://www.pincette.biz/davbox/index.xhtml "http://www.pincette.biz/davbox/index.xhtml")</td><td>Any (Java)</td><td>Commercial</td><td>Works great for two-ways folder synchronization.</td></tr></tbody></table>

An example of the URL you need to use to access Web File Share's WebDAV would be: "[http://files.quikbox.com/dav.php/](http://files.quikbox.com/dav.php/ "http://files.quikbox.com/dav.php/")" (for our online demo) Please note that the URL must contain the trailing slash character, after "dav.php".

### Note for Apache servers:

If PHP is running as CGI/FastCGI on your server and the HTTP authentication fails, even if you provide valid credentials. If there isn't already a ".htaccess" file in the root folder of your Web File Share installation, create one and make sure it contains the following two lines:

RewriteEngine on

RewriteRule .\* - \[E=HTTP\_AUTHORIZATION:%{HTTP:Authorization},L\]

```
 
```

<article class="col-sm-9 col-md-10 " id="bkmrk-macos%3A-connecting-wi" style="box-sizing: border-box; display: block; position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; float: left; width: 1266px;">## MacOS: Connecting with Finder

Assuming your Web File Share instance is installed at **`https://www.your-site.com/WebFileShare`**

In the Finder, choose *Go* &gt; *Connect to Server*, type the address of the server in the Server Address field, and click Connect. The server address should be in a form similar to this: `ADDRESS/WebFileShare/dav.php/`.

For our example, that would be:

`https://www.your-site.com/WebFileShare/dav.php/`

For details, check the respective vendor documentation at the Apple website: [http://support.apple.com/kb/PH3857](http://support.apple.com/kb/PH3857 "http://support.apple.com/kb/PH3857")

## Linux: mounting from the command line

Install the WebDAV support using the davfs package. On Debian/Ubuntu, you can use:

<div><div><div><div><div><div>```
sudo apt-get install davfs2
```

</div></div></div></div></div></div>Reconfigure davfs2 to allow access to normal users (select Yes when prompted):

<div><div><div><div><div><div>```
sudo dpkg-reconfigure davfs2
```

</div></div></div></div></div></div>Add the users you want to be able to mount the share to the davfs2 group:

<div><div><div><div><div><div>```
sudo usermod -aG davfs2 <user>
```

</div></div></div></div></div></div>Edit /etc/fstab and add the following line for each user who wants to mount the folder (with your details where appropriate):

<div><div><div><div><div><div>```
your-site.com/WebFileShare/dav.php/ /home/<username>/WebFileShare davfs user,rw,noauto 0 0
```

</div></div></div></div></div></div>Then, as each user who wants to mount the folder:

Create the folders WebFileShare/ and .davfs2/ in your home directory

Create the file secrets inside .davfs2/, fill it with the following (with your credentials where appropriate):

<div><div><div><div><div><div>```
your-site.com/WebFileShare/dav.php/ <username> <password>
```

</div></div></div></div></div></div>Ensure the file is only writable by you either through the file manager, or via:

<div><div><div><div><div><div>```
chmod 600 ~/.davfs2/secrets
```

</div></div></div></div></div></div>Run the command:

<div><div><div><div><div><div>```
mount ~/WebFileShare
```

</div></div></div></div></div></div>To automatically mount the folder on login, add the command you used in step 4 to ./.coderc

**Known Issues**

*Problem*: Resource temporarily unavailable

*Solution*: If you experience trouble when you create a file in the directory, edit /etc/davfs2/davfs2.conf and add:

<div><div><div><div><div><div>```
use_locks 0
```

</div></div></div></div></div></div>*Problem*: Certificate warnings

*Solution*: If you use a self-signed certificate, you will get a warning. If you are willing to take the risk of a man in the middle attack, run this command instead:

<div><div><div><div><div>```
echo "y" | mount ~/WebFileShare > /dev/null 2>&
```

</div></div><div> </div></div></div></div></article>```
 
```