Plesk and WebDav

Need to get WebDav running on a directory within a domain hosted on Plesk 8.4 for Linux (Fedora 8).

These URLs were helpful:

Created the following files: /var/www/vhost/domain.com/conf/vhost.conf and /var/www/vhost/domain.com/conf/vhost_ssl.conf

And populated them with:

# vhost.conf
Alias /webdav_directory /var/www/vhosts/domain.com/httpdocs/webdav_directory
<Location /managementdocs>
DAV On
Options +Indexes
</Location>

And…

# vhost_ssl.conf
Alias /webdav_directory /var/www/vhosts/domain.com/httpdocs/webdav_directory
<Location /managementdocs>
DAV On
SSLRequireSSL
Options +Indexes
</Location>

Obviously you don’t need both as you may just want it accessible via HTTPs.

Then, rebuilt the Plesk webserver configuration file with the following command:  /usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=domain.com

This appeared to work and allowed adding the URL via windows “Add new network place”.

Other commands we issued (allowing read/write from the apache/psacln user – could possibly do this with chmod 2775?):

 chmod 777 /var/www/vhosts/domain.com/httpdocs/webdav_directory

Also, you probably don’t want it accessible from anyone and everyone.  You can add password authentication via the Plesk interface using protected directories.

Leave a Reply

Your email address will not be published. Required fields are marked *