Osman Maqsood wrote:
> I am trying to made my web site password protected. I made the
> configuration  in httpd.conf. Also compile Apache with
> --enable-module=auth
> The configuration is
>         deny from all
>            allow from .domain.com
>            AuthType Basic
>            AuthUserFile /usr/local/apache/conf/htpasswd.users
>            AuthName "special directory"
>            require valid-user
>            satisfy any
> but when i am access the webpage, It ask the password but did not allow to
> get in. The error which i am getting in error_log is
> 
> failed reason: unkown require directive "valid-user"
> failed reason: user osich not allow access.

The "require" directive should be followed by "user" or "group" and a
space-delimited list of users or groups:

require user agreene jdoe omaqsood
require group marketing sales

In either case, the user must be listed in the file you specified in the
AuthUserFile directive. If you use "require group" then you must also
include the AuthGroupFile directive to specify the group file. The group
file should include a groupname and a space-delimited list of users:

marketing: user1 user2 user3
sales: user1 user2 user3

If Apache finds the username in the authorized group it checks the password
in the specified AuthUserFile. You can use both "require user" and "require
group" in a single directory, but you will have to include the "satisfy any"
directive so that a user may match either directive.

-- 
 Anthony E. Greene <[EMAIL PROTECTED]>
 Homepage & PGP Key <http://www.pobox.com/~agreene/>
 If it's too good to be true, it's probably Linux.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to