I have a Solaris 8 server running Apache 2.0.53 in a very basic configuration. mod_access module is loaded but doesn't appear to work. I have several directories I'm protecting with basic authentication but the authentication dialogue box doesn't appear. Instead the protected content simply loads. I have checked over the httpd.conf file and made sure that mod_access is loaded. Here is my loaded modules list:
core mod_access mod_auth mod_auth_dbm mod_include mod_log_config mod_env mod_mime_magic mod_cern_meta mod_headers mod_usertrack mod_unique_id mod_setenvif mod_proxy proxy_connect proxy_ftp proxy_http mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_suexec mod_cgi mod_negotiation mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_so sapi_apache2
The configure statement for this build was simply:
'./configure' '--with-apxs2=/opt/apache-2.0/bin/apxs' '--with-mysql'
Here is a sample of a protected dir from httpd.conf:
<Directory "/var/www/html/docs/isa/projects">
XBitHack on
AuthType Basic
AuthName "Private"
AuthUserFile /opt/apache-2.0_www/conf/www_passwd
Require user someone
Order allow,deny
Allow from all
</Directory>
I believe the syntax is 100% OK.
When I run "http -l" I get the expected modules list. Is there something in httpd.conf that I'm missing? Do I have to explicitly load/activate mod_access somewhere? Help!
Do you have a Satisfy directive somewhere? If yes, you'll need to set it to 'all' for that directory, e.g.
Satisfy all
.....
.....
And (a silly question) did you restart apache httpd?