httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject RE: Limit +Directory to certain Usergroups?
Date Fri, 15 Feb 2002 17:41:51 GMT

> From: Andreas Lorenz [mailto:andreas.frankfurt@gmx.de]

> The Question sounds easy:
>
> How can I limit the access to the server generated directory-listing to
> certain user-groups (eg. Admins)?
>
> I need to prevent normal users from viewing the content of the folder but
> admins must be able to see it......

Not that easy.  Here's one suggestion:

Alias /admin/ /path/to/document/root/

<Location /admin/>
Options +Indexes
DirectoryIndex notarealfile.html
require group admin
</Location>

Then your admin group can get a directory listing for
http://example.com/dir/ if they access http://example.com/admin/dir/

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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message