You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/03/14 03:10:48 UTC

[BUG]: "AuthDBMAuthoritative off: then .htaccess directives" on FreeBSD (fwd)

Can't think why he wants to do this (have Auth directives in access.conf
and .htaccess for the same URL).

Not acked.

---------- Forwarded message ----------
Date: Thu Mar 13 15:20:21 1997
From: conor@synergy.transbay.net
To: apache-bugs%apache.org@organic.com
Subject: [BUG]: "AuthDBMAuthoritative off: <directory> then .htaccess directives" on FreeBSD

Submitter: conor@synergy.transbay.net
Operating system: FreeBSD, version: 2.2
Version of Apache Used: 1.2b7
Extra Modules used: mod_auth_dbm.c
URL exhibiting problem: 

Symptoms:
--
I have a valid directory entry for directory /foo in access.conf 
This works for user fred1 in AuthDBMUserFile .htpasswd1.db  when there is no .htaccess file
I have a valid .htaccess file in directory /foo
This works for user fred2 in AuthDBMUserFile .htpasswd2.db

The problem is when fred1 tries to access /foo when the .htaccess file is there
httpd-error.log reports
accesstest.html failed for weevil.vicor-nb.com, reason: configuration error:  couldn't check user.  No user file?
the browser reports an Internal Server Error

The <Directory> and .htaccess entries are very similar
In access.conf
<Directory /foo>
AuthDBMAuthoritative Off
AuthDBMUserFile /secure/.htpasswd1
AuthName UserAuthentication
AuthType Basic
require valid-user
</Directory>
In .htaccess in /foo
AuthDBMAuthoritative Off
AuthDBMUserFile /secure/.htpasswd2
AuthName UserAuthentication
AuthType Basic
require valid-user

thanks

--

Backtrace:
--

--