1. Please take a little time for this simple survey! Thank you for participating!
    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

    0
     
    Is it integrated, is it easy?

    Or do I have to do some hacking around?

    Any guides/howtos?

    Thanks!
     
  2. exothermic

    exothermic Guest

    0
     
    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

    0
     
    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.
     
Loading...