1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How do I enable WebDAV in Plesk 7.5?

Discussion in 'Plesk for Linux - 8.x and Older' started by Imidazole, Oct 14, 2005.

  1. Imidazole

    Imidazole Guest

    Is it integrated, is it easy?

    Or do I have to do some hacking around?

    Any guides/howtos?

  2. exothermic

    exothermic Guest

    Just follow the apache doc instructions, and put all vhost changes in domain/conf/vhost.conf you will then have to reload the config files via

    /usr/local/psa/admin/sbin/websrvmng -ar

    that is all there is to it for plesk. You will definately need to dig for apache info though.
  3. spekary

    spekary Guest

    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
    Allow from all
    Deny from all

    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

    The usual plesk mechanism will be in charge of authenticating.

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

    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.