Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Install Apache2, mod_ssl and mod_webdav dav if not pre-installed.

Code Block
$ a2enmod dav dav_fs dav_lock # Enable DAV
$ mkdir /path/to/www/dav      # Create directory for DAV
$ chown www-data:wwwdata /path/to/www/dav

$ a2enmod ssl                 # Enable SSL
$ a2ensite default-ssl        # Enable SSL site

Setup the SSL site (on debian /etc/apache2/sites-available/default-ssl) to use the relevant keys and certificates:

Code Block

        SSLCertificateFile    /path/to/server.crt
        SSLCertificateKeyFile /path/to/server.key
        SSLCACertificateFile  /path/to/ca.crt
        SSLVerifyClient       require
        SSLVerifyDepth        10

And DAV:

Code Block

        <Location /dav>
                Dav On
        </Location>
Code Block
$ /etc/init.d/apache2 restart # Finally restart apache

...