I am having problems setting up user authentication in Apache 1.1.1.
Basically, when you go to access the "protected" page, it gives a Server
Error. UGH! Using the documentation from Apache Week
(http://www.apacheweek.com/features/userauth), this is what I have:
Since I don't want Apache checking *every* directory for .htaccess files I
have the access.conf file set with the main <Directory
/var/lib/httpd/docs> ... AllowOverride None ... </Directory> set and then
have the 2 directories I want protected set:
<Directory /var/lib/httpd/docs/stats>
AllowOverride AuthConfig
</Directory>
<Directory /var/lib/httpd/docs/maint>
AllowOverride AuthConfig
</Directory>
I have tried making the AllowOverride AuthConfig in the main
<Directory>... directive only and killing those other 2 as well, but the
same problem persists.
Also, my .htaccess file in the /stats directory looks like this:
AuthName stats
AuthType Basic
AuthUserFile /var/lib/httpd/users
require valid-user
This is pretty much verbatim from the example given. But it does not
work. Oh yeah, I have my users file setup correctly (I used htpasswd from
the /support directory). Hrmmm... anyone? This is killing me! My only
conclusion is that this documentation is flawed somewhere or I am making
some totally stupid mistake.
Thanks!
-Matthew Martin