CariNet Forums  
Go Back   CariNet Forums > Backup Solutions

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-05-2008, 05:02 PM   #1 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thumbs up How to enable WebDAV in plesk

Here are some more details, and a sample config.

You can put the following in a vhost.conf, or put it in dav.conf and include dav.conf from your vhost.conf file. These would both go in the conf directory of your site.

- To create a read-only Dav directory, use the following. Substitute the correct paths for <vhosts>, <domain_name> and <dav_dir>.

<Directory "/<vhosts>/<domain_name>/httpdocs/<dav_dir>">
DAV on
AllowOverride None
<Limit HEAD GET POST OPTIONS PROPFIND>
Allow from all
</Limit>
<Limit MKCOL PUT DELETE LOCK UNLOCK COPY MOVE PROPPATCH>
Deny from all
</Limit>
</Directory>

You can then mount the directory using http://<domain_name>/<dav_dir>

- To create a dav directory that is read/write and password protected, you have a couple of ways to go about it.

1) Using Plesk, create a password protected directory. Then, add something like the following to the .conf file:

<Directory "/<vhosts>/<domain_name>/httpdocs/<protected_dir>">
DAV on
AllowOverride none
</Directory>

The usual plesk mechanism will be in charge of authenticating.

Or, you can just do:
<Directory "/<vhosts>/<domain_name>/httpdocs/<any_dir>">
DAV on
</Directory>

and then use .htaccess type authentication by putting it in the .htaccess file of the directory.

Do not create an unprotected read/write directory, or you will open your server up to all kinds of hacking.

After all of this, restart using something like:

websrvmng -v -a

If it doesn't work, check the following:
1) That you are using http or https as appropriate. Putting commands in vhost.conf and then trying to get to dav with https will not work.
2) Make sure all paths are exactly right. If anything is off, you will get a message that the service is not available.
3) Don't use the site preview URL from within plesk. It won't work. Any nameserver changes must propogate first if using a shared IP.
zerosoul13 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Share on FacebookStumble this Post!Google Bookmark this Post!Bookmark to Slashdot!
Reply With Quote
Old 07-06-2008, 02:50 PM   #2 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default

Keep in mind that the solution above creates a WebDAV server, not a client to connect to your backup solutions. See my other post to use WebDAV on a *nix server.
webnerds is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Share on FacebookStumble this Post!Google Bookmark this Post!Bookmark to Slashdot!
Reply With Quote
Reply

Tags
backup, plesk, webdav

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -7. The time now is 09:41 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0