You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Admin Cyanide <ad...@cyanide-studio.com> on 2011/04/15 11:16:17 UTC
[users@httpd] configuration error: couldn't check access. Check your 'Require'
directive
Hi list,
I'm setting up a new vhost and have this error currently :
[Fri Apr 15 10:17:37 2011] [crit] [client 62.73.7.64] configuration error: couldn't check access. Check your 'Require' directive: /
[Fri Apr 15 10:17:37 2011] [crit] [client 62.73.7.64] configuration error: couldn't check access. Check your 'Require' directive: /favicon.ico
Apache version :
# # httpd -v
Server version: Apache/2.2.16 (FreeBSD)
Server built: Apr 15 2011 09:54:07
System version :
# uname -a
FreeBSD files.domain.tld 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
vhost config :
<VirtualHost *:80>
ServerAdminadmin@domain.tld
DocumentRoot /usr/local/www/files
ServerName files.domain.tld
<Directory /usr/local/www/files>
Order allow,deny
Allow from all
AuthType Basic
AuthUserFile /dev/null
AuthBasicAuthoritative Off
AuthName "files repository authentication"
AuthMySQLHost fqdn.domain.tld
AuthMySQLDB DBName
AuthMySQLUserTable T_FTPUsers
AuthMySQLUser UserName
AuthMySQLPassword Password
AuthMySQLNameField str_username
AuthMySQLPasswordField str_password_md5
AuthMySQLPwEncryption md5
require valid-user
</Directory>
# LogLevel debug
ErrorLog "|/usr/local/sbin/rotatelogs -l /var/log/apache/files-errors.log.%Y-%m-%d-%H_%M 5M"
# LogFormat "%h %l %u %t \"%r\" %>s %b" all
# CustomLog "|/usr/local/sbin/rotatelogs -l /var/log/apache/files-access.log.%Y-%m-%d-%H_%M 86400" all
</VirtualHost>
I checked the modules compiled :
# grep AUTH /var/db/ports/apache22/options
WITH_AUTH_BASIC=true
WITHOUT_AUTH_DIGEST=true
WITH_AUTHN_FILE=true
WITHOUT_AUTHN_DBD=true
WITHOUT_AUTHN_DBM=true
WITH_AUTHN_ANON=true
WITH_AUTHN_DEFAULT=true
WITH_AUTHN_ALIAS=true
WITH_AUTHZ_HOST=true
WITH_AUTHZ_GROUPFILE=true
WITH_AUTHZ_USER=true
WITHOUT_AUTHZ_DBM=true
WITH_AUTHZ_OWNER=true
WITH_AUTHZ_DEFAULT=true
WITHOUT_AUTHNZ_LDAP=true
If I try a wrong login :
[Fri Apr 15 11:08:35 2011] [error] [client 62.73.7.64] user soad: password mismatch: /
Without critical error, so the authentication is correct.
I tried to set :
"require user userx" : same problem
As far as I searched on google I found errors due to (not) loaded modules, but I think I have all the modules I need.
Any advice is welcome,
Thx,
--
Bastien Semene
Administrateur Réseau& Système
Cyanide Studio - FRANCE
---------------------------------------------------------------------
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] configuration error: couldn't check access. Check
your 'Require' directive
Posted by Admin Cyanide <ad...@cyanide-studio.com>.
You're right.
httpd -M doesn't show authz_user_module.
Sorry for the inconvenience and thank you for the fast reply.
Bastien Semene
Administrateur Réseau& Système
Cyanide Studio - FRANCE
Le 15/04/2011 11:27, Nick Kew a écrit :
> On 15 Apr 2011, at 10:16, Admin Cyanide wrote:
>
>> [Fri Apr 15 10:17:37 2011] [crit] [client 62.73.7.64] configuration error: couldn't check access. Check your 'Require' directive: /
>> require valid-user
> So you need to load mod_authz_user.
>
>> I checked the modules compiled :
>> # grep AUTH /var/db/ports/apache22/options
> Whoever maintains that port would know what that tells you, but it's
> evidently not the same as "httpd -M", which is what you were looking for.
>
--
Bastien Semene
Administrateur Réseau& Système
Cyanide Studio - FRANCE
---------------------------------------------------------------------
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] configuration error: couldn't check access. Check your 'Require' directive
Posted by Nick Kew <ni...@webthing.com>.
On 15 Apr 2011, at 10:16, Admin Cyanide wrote:
> [Fri Apr 15 10:17:37 2011] [crit] [client 62.73.7.64] configuration error: couldn't check access. Check your 'Require' directive: /
> require valid-user
So you need to load mod_authz_user.
> I checked the modules compiled :
> # grep AUTH /var/db/ports/apache22/options
Whoever maintains that port would know what that tells you, but it's
evidently not the same as "httpd -M", which is what you were looking for.
--
Nick Kew
Available for work, contract or permanent
http://www.webthing.com/~nick/cv.html
---------------------------------------------------------------------
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