Basic WebDAV and vhost setup on a LVM volume
Wednesday, May 3, 2006 11:45:16 AM
lvcreate -v -L3G -nMyUserName vg mke2fs -T largefile -j -v -m 1 /dev/vg/MyUserName mount /dev/vg/MyUserName var/dav/MyUserName/ superadduser chown -R apache:apache /var/dav/MyUserName vi /etc/apache2/modules.d/45_mod_dav.conf
<IfModule mod_dav.c>
Alias /MyUserName /var/dav/MyUserName
#snip
<Location /MyUserName>
Dav On
Options Indexes
<Limit PUT POST DELETE PROPPATCH COPY MOVE LOCK UNLOCK>
AuthType Basic
AuthName "WebDAV Restricted Repository"
AuthUserFile /path/to/.davpasswd
Require user MyUserName
</Limit>
</Location>
</IfModule>
htpasswd2 -b /path/to.davpasswd MyUserName MyPassword vi /etc/apache2/vhosts.d/vhosts.conf
<VirtualHost 217.160.106.95:80>
ServerName MyUserName.de
DocumentRoot /var/dav/MyUserName/web
<Directory /var/dav/MyUserName/web>
Order allow,deny
Allow from all
Options -Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
</Directory>
</VirtualHost>
/etc/init.d/apache2 restart

