You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Smedley <pa...@smedleydot.info> on 2006/04/23 13:04:48 UTC

[users@httpd] mod_auth problem

Hi All,
I'm trying to secure a page on my site using mod_auth_basic

I have the following in httpd.conf:
    <Directory "/website/phpmyadmin">
        AuthType Basic
        AuthBasicProvider file
        AuthBasicAuthoritative Off
        AuthName "Admin"
        AuthUserFile c:/mptn/etc/htpasswd
        Require user psmedley
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

but when I try and access the directory, I get a user/password dialog 
but it doesn't accept it, and in error_log I get:
[Sun Apr 23 20:32:15 2006] [error] [client 192.168.0.2] access to 
/phpmyadmin failed, reason: require directives present and no 
Authoritative handler.

Any ideas?

-- 
Cheers,

Paul.


---------------------------------------------------------------------
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] mod_auth problem

Posted by Joshua Slive <jo...@slive.ca>.
On 4/23/06, Paul Smedley <pa...@smedleydot.info> wrote:
> Hi All,
> I'm trying to secure a page on my site using mod_auth_basic

>         AuthBasicAuthoritative Off

> but when I try and access the directory, I get a user/password dialog
> but it doesn't accept it, and in error_log I get:
> [Sun Apr 23 20:32:15 2006] [error] [client 192.168.0.2] access to
> /phpmyadmin failed, reason: require directives present and no
> Authoritative handler.

Remove the AuthBasicAuthoritative directive or turn it "On".

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