Alpine - Installer KaraDAV

A la rache. Referait mieux plus tard.

Cloner le repo :

cd /var/www git clone https://github.com/kd2org/karadav.git

Copier la config

cd /var/www/karadav cp config.dist.php config.local.php

Créer le vhost

<VirtualHost *:80> ServerName karadav.localhost DocumentRoot /var/www/karadav/www </VirtualHost> <Directory /var/www/karadav/www> Options -Indexes -Multiviews AllowOverride None DirectoryIndex index.php RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^.*$ /_router.php [L] </Directory>

Ou via un sous-dossier :

<VirtualHost *:80> ServerName me.localhost Alias /karadav /var/www/karadav/www </VirtualHost> <Directory /var/www/karadav/www> Options -Indexes -Multiviews AllowOverride None DirectoryIndex index.php RewriteEngine On RewriteBase /dav/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^.*$ /dav/_router.php [L] </Directory>

Si pas fait, activer le module rewrite dans httpd.conf en décommentant :

LoadModule rewrite_module modules/mod_rewrite.so

On redémarre Apache :

rc-service apache2 restart