Thursday, September 16, 2010

How To Set Up WebDAV With Apache2 On OpenSUSE 11.3

Follow me on Twitter
Last edited 09/07/2010

This guide explains how to set up WebDAV with Apache2 on an OpenSUSE 11.3 server. WebDAV stands for Web-based Distributed Authoring and Versioning and is a set of extensions to the HTTP protocol that allow users to directly edit files on the Apache server so that they do not need to be downloaded/uploaded via FTP. Of course, WebDAV can also be used to upload and download files.

I do not issue any guarantee that this will work for you!

 

1 Preliminary Note

I'm using an OpenSUSE 11.3 server with the IP address 192.168.0.100 here.

 

2 Installing WebDAV

If Apache is not already installed, install it as follows:

yast2 -i apache2

Afterwards, enable the WebDAV modules:

a2enmod dav
a2enmod dav_fs
a2enmod dav_lock

Then create the system startup links for Apache and start it:

chkconfig --add apache2

/etc/init.d/apache2 start

 

3 Creating A Virtual Host

I will now create an Apache vhost www.example1.com in the directory /srv/www/web1/web. If you already have a vhost for which you'd like to enable WebDAV, you must adjust this tutorial to your situation.

First, we create the directory /srv/www/web1/web and make the Apache user (wwwrun) and group (www) the owner of that directory:

mkdir -p /srv/www/web1/web
chown wwwrun:www /srv/www/web1/web

Now we create the Apache vhost for www.example1.com:

vi /etc/apache2/vhosts.d/www.example1.com.conf

No comments:

Post a Comment