Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Multi-user webdav |
|
Author |
|
lordvithis
Joined: 15 Jun 2011 Posts: 3 Location: United Kingdom
|
Posted: Wed 15 Jun '11 23:45 Post subject: Multi-user webdav |
|
|
Hi, I was wondering, if its even possible, how to go about creating the following enviroment:
Firstly, I already have apache set up with SSL and webdav and accessing it via a dyndns domain.
webDav currently has digest authentication setup with two users but currently only accessesing one dir.
What I would LIKE is:
When a user hits the root webdav dir they will be prompted to enter a valid username and password, upon doing so they will then be re-directed to their own individual dir. so if you log in as 'user1' they would have their own directory on the file system, and likewise for 'user2'
So, firstly, is it possible? Secondly, how would I go about it?
Running Apache 2.2.8, on Windows 7 (full access to system).
If its of any help, my current conf file for webdav looks likes this:
Quote: |
#
# Distributed authoring and versioning (WebDAV)
#
# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
# mod_auth_digest, mod_authn_file
#
# The following example gives DAV write access to a directory called
# "uploads" under the ServerRoot directory.
#
# The User/Group specified in httpd.conf needs to have write permissions
# on the directory where the DavLockDB is placed and on any directory where
# "Dav On" is specified.
DavLockDB "C:/wamp/webdav/davlock"
Alias /webdav "C:/wamp/webdav"
<Directory "C:/wamp/webdav">
Dav On
Order Allow,Deny
Allow from all
AuthType Digest
AuthName DAV-upload
# You can use the htdigest program to create the password database:
# htdigest -c "C:/Program Files/Apache Software Foundation/Apache2.2/user.passwd" DAV-upload admin
AuthUserFile "C:/wamp/bin/apache/apache2.2.8/user.passwd"
require valid-user
</Directory>
#
# The following directives disable redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with several clients that do not appropriately handle
# redirects for folders with DAV methods.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully |
|
|
Back to top |
|
lordvithis
Joined: 15 Jun 2011 Posts: 3 Location: United Kingdom
|
Posted: Wed 15 Jun '11 23:52 Post subject: |
|
|
Prematurly hit submit there
I was going to go on and say, the idea is that the "root" webdav dir is going to be accessed by OmniFocus running on several iPhone/iPad/iPod's (dont hate) for shared (family) to-do's/reminders and also users can use webdav access via Office2 to access their own individual documents.
I was also thinking of making the users [webdav] dir a symlink to their "My Documents" directory so that their stuff is always available - but I'm undecided on that yet.
Thanks for any and all help |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 16 Jun '11 22:28 Post subject: |
|
|
I haven't tried it at all, but I think you might combine mod_userdir with webdav. |
|
Back to top |
|
lordvithis
Joined: 15 Jun 2011 Posts: 3 Location: United Kingdom
|
Posted: Thu 23 Jun '11 0:22 Post subject: |
|
|
Thanks, I will look into that.
Suffice to say I'm a relative newb to all this and google hasn't been much help (infact, googling "mod_userdir webdav" shows this post as the 6th result!). |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 23 Jun '11 10:25 Post subject: |
|
|
Haven't tested, but some kinda like this.
Code: |
UserDir "webdav"
<Directory "C:/Documents and Settings/*/webdav">
DAV On
AllowOverride FileInfo Limit AuthConfig
Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
|
|
|
Back to top |
|
|
|
|
|
|