You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-apps/webdavcgi/files/postinstall-en.txt

30 lines
1.1 KiB

Before you can run WebDAV CGI you need to configure your web server and WebDAV
CGI itself.
The following configuration snippet serves as an example for the Apache HTTPD
web server. You will have to adapt it to suite your own server and configuration
needs.
ScriptAlias /cgi-bin/ "${VHOST_CGIBINDIR}/"
<Location /${VHOST_CGIBINDIR##*/}/>
AuthType Basic
AuthName "WebDAV-CGI"
AuthUserFile ${VHOST_ROOT}/etc/users.htpasswd
Require valid-user
Order Allow,Deny
Allow from all
</Location>
RewriteEngine On
RewriteRule ^/${VHOST_APPDIR}/logout /${VHOST_CGIBINDIR##*/}/logout [PT,E=REALM:WebDAV-CGI,E=HOMEURL:/${VHOST_APPDIR},L]
RewriteRule ^/${VHOST_APPDIR} /${VHOST_CGIBINDIR##*/}/webdav.pl [PT,E=WEBDAVCONF:${VHOST_ROOT}/etc/webdav.conf,E=PERLLIB:${VHOST_ROOT}/lib/perl,L]
Afterwards you need to copy the default configuration file and edit it:
cp -p ${VHOST_ROOT}/etc/{webdav.conf-dist,webdav.conf}
\$EDITOR ${VHOST_ROOT}/etc/webdav.conf
For further informations study the online documentation which is located at:
http://webdavcgi.sourceforge.net/doc.html