WebDAV multiple users

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

WebDAV multiple users

Post by alex.barylski »

I've been reading up on WebDAV lately but still confused as to it's limits.

I was looking for a way to offer remote storage for clients, using either FTP or DAV -- the latter of which I want.

I need to support unlimited users (preferably driven from mysql) and each user should be assigned a quota limit and be restricted to essentially their own 'share'.

I cannot figure out how this is done using WebDAV or if it's even possible.

I have seen several examples of a single dav share pointing to a single directory using virtual hosts, etc...not quite what I need.

Hopefully this is clear and someone can shed some light on the subject for me...

Cheers,
Alex
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: WebDAV multiple users

Post by alex.barylski »

After some more reading I have the following question: Given the following virtual host configuration...

Code: Select all

  Port 80
    ServerName server.domain.tld
 
    NameVirtualHost 111.22.33.44 
 
    <VirtualHost 111.22.33.44>
    DocumentRoot /www/domain
    ServerName http://www.domain.tld
    ...
    </VirtualHost>
    
    <VirtualHost 111.22.33.44>
    DocumentRoot /www/subdomain
    ServerName http://www.sub.domain.tld
    ...
    </VirtualHost>
Would adding the WebDAV directive to "each" virtual host directive limit the WebDAV resources to each virtual host?

Basically each authenticated user should have read/write access to their directory

Code: Select all

 
user.domain.com
But should never be able to traverse into others, such as:

Code: Select all

user2.domain.com
Make sense? What am I missing?
Post Reply