S82webdav

Synopsys


#
# Configure mod_dav to offer webdav access to users home directories
#
# Requires: apache user added to the users group
#	    public_html directory made writable to users group

Script


cp /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf-$VERSION

# Delete the last two lines of the file
sed 'N;$!P;$!D;$d' /etc/httpd/conf.d/ssl.conf-$VERSION > /etc/httpd/conf.d/ssl.conf

# Append the Dav configuration
cat >> /etc/httpd/conf.d/ssl.conf <<EOF
<Directory /home/*/public_html>
  Dav On
</Directory>
</VirtualHost>

EOF

Examples and Testing


#
# Dav can be tested with the dav test suite - http://www.webdav.org/neon/litmus
#
# Dav can be tested from Windows using the Add Network Place wizard



Marked up in XHTML - ©2005 Thoughtful Solutions Ltd.