Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sharing home folders with apache 2 and webdav
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jyelloz
n00b
n00b


Joined: 14 Jan 2004
Posts: 30

PostPosted: Sun Jun 20, 2004 11:07 pm    Post subject: sharing home folders with apache 2 and webdav Reply with quote

I was just wondering if there was a simple way to do so and/or if anyone here is willing to provide some advice. I would hope that the userdir mod could help here but I am not sure how it will work with suexec. I've looked around here and elsewhere and haven't found anything too useful.
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 507

PostPosted: Sat Sep 11, 2004 1:22 am    Post subject: webdav Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum