o5gmmob8 Guru
Joined: 17 Oct 2003 Posts: 507
|
Posted: Sat Sep 11, 2004 1:22 am Post subject: webdav |
|
|
Hi,
Setting up webdav is simple - I put this in commonapache.conf, but this can go into the module configuration file instead:
Code: |
<Directory <shared_folder>>
#Options None
#Dav On
AuthType Basic
AuthName "DavFS authentication"
AuthUserFile <path_to_htpasswd_file>
Require user <username>
<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require user <username>
</Limit>
#</Directory>
|
Be sure to turn it on in /etc/conf.d/apache2:
-D DAV -D DAV_FS
Also, it should generally be setup automatically with Gentoo, but if it isn't, look for options in:
/etc/apache2/conf/modules/45_mod_dav.conf:
Code: |
<IfDefine DAV>
<IfModule !mod_dav.c>
LoadModule dav_module modules/mod_dav.so
</IfModule>
</IfDefine>
<IfDefine DAV_FS>
<IfModule !mod_dav_fs.c>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfModule>
</IfDefine>
<IfModule mod_dav.c>
DavMinTimeout 600
# <Location /mypages>
# Options None
# Dav On
# <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
# Require user greg
# </Limit>
# </Location>
</IfModule>
<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DavLockDB /var/lib/dav/lockdb
</IfModule>
|
You can put the directives here instead of commonapache.conf as gentoo makes setup very flexible. I usually put it in commonapache.conf so I know what is being shared.
Walter |
|