You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nicolas Goy <go...@goyman.com> on 2004/07/14 12:17:36 UTC

[users@httpd] WebDAV User location

Hello,

I got a directory named inoFiles that's protected with authentification.

Under this directory, I got subdirectories with user names like

http://someserver/inoFiles/john
http://someserver/inoFiles/clark
http://someserver/inoFiles/peter
...

The user dirs match database users.

I use oracle authentification.

Currently, all users that are correctly authentified can access 
inoFiles/*.

What I want it to restrict access to subdirectories based on 
authentification name like:

user john can only access
http://someserver/inoFiles/john

user peter can only access
http://someserver/inoFiles/peter

and so one.

As I got about 150 000 users I absolutly need automatic management.

All files are owned by nobody on the server disk and that's not a 
problem. (just say that I don't want to match authentification with 
unix users)

Hope my question was complete enough.

Best regards

Goyman


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] WebDAV User location

Posted by Joshua Slive <js...@gmail.com>.
On Wed, 14 Jul 2004 12:17:36 +0200, Nicolas Goy <go...@goyman.com> wrote:
> Hello,
> 
> I got a directory named inoFiles that's protected with authentification.
> 
> Under this directory, I got subdirectories with user names like
> 
> http://someserver/inoFiles/john
> http://someserver/inoFiles/clark
> http://someserver/inoFiles/peter
> ...
> 
> The user dirs match database users.
> 
> I use oracle authentification.
> 
> Currently, all users that are correctly authentified can access
> inoFiles/*.
> 
> What I want it to restrict access to subdirectories based on
> authentification name like:
> 
> user john can only access
> http://someserver/inoFiles/john
> 
> user peter can only access
> http://someserver/inoFiles/peter
> 
> and so one.
> 
> As I got about 150 000 users I absolutly need automatic management.

One way to do this is
RewriteEngine On
RewriteRule ^/inoFiles/(.*) /inoFiles/%{LA-U:REMOTE_USER}$1

Which will mean that everyone will simply access
http://someserver/inoFiles/ without the username tagged on, but apache
will put them in the right directory based on the login information.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org