You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Lopez <da...@rawbyte.com> on 2003/11/23 20:48:23 UTC
Re: [users@httpd] Password Sets for Each Website
> Currently I have some 6 websites on my server which I like to have
> password protection. All these 6 protected websites share the same
> "C:\.htpasswd".
[...]
> All these 6 websites are using the same sets of ID and passwords.
> However, what I want is actually only a particular set of IDs can access
> a particular website (i.e. one of the 6).
>
> What should I do such that I can create websites where only a specific
> set of users can access a particular protected website and cannot access
> other protected website.
Instead of using
Require valid-user
use
Require user user1 user2
or organize users in groups and use
Require group group1 group2
More info at
http://httpd.apache.org/docs/mod/core.html#require
--
Teach Yourself Apache 2 -- http://apacheworld.org/ty24/
---------------------------------------------------------------------
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