Error added: 2008-01-15T18:18:03Z
Windows users do not have the ability to specify \"AuthUserFile /dev/null\". Furthermore, that is an undesirable solution (as others have noted). This is the appropriate method, provided as a complete example: <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all AuthBasicProvider dbm AuthDBMType SDBM AuthName \"Protected Area\" AuthType Basic AuthDBMUserFile \"D:/Program Files/Apache/passwords.dat\" require valid-user </Directory> Obviously, \"AuthBasicProvider\" and \"AuthDBMType\" must reflect the correct values for your system (available types for \"AuthDBMType\" are: default|SDBM|GDBM|NDBM|DB). See http://httpd.apache.org/docs/2.0/mod/mod_auth_dbm.html and http://httpd.apache.org/docs/2.1/mod/mod_auth_basic.html for additional information. The above example functions as expected with Apache 2.2.6 on Windows 7 x86. \"passwords.dat\" should be created with something like this: > D:\\Program Files\\apache\\bin>htdbm -cs \"D:\\Program Files\\Apache\\passwords.dat\" yourname Note also that, according to the mod_auth_basic manual page (cited above), setting \"AuthBasicAuthoritative\" to \"Off\" \"... should only be necessary when combining mod_auth_basic with third-party modules that are not configured with the AuthBasicProvider directive.\" Thanks to everyone here for the assistance in getting this to work properly (under Windows, no less).
this works for me: AuthType Basic AuthName \"Login!\" AuthPAM_Enabled On AuthBasicAuthoritative Off AuthUserFile /dev/null Require valid-user
For anyone who has the same problem the fix is to add the following line to the <directory> directives AuthUserFile /dev/null The error messages are apparently caused by apache 2.2.2 expecting a users file even if the auth method doesn\'t use one. http://www.linuxquestions.org/questions/linux-server-73/apache-modauthmysql-problem-493429/
Still not working for me. I\'m using a VServer with Ubuntu and Plesk installed. \"AuthUserFile /dev/null\" gets rid of the entry in apache\'s error.log, but doesn\'t solve the problem. Adding \"AuthBasicAuthoritative Off\" doesn\'t help either. Putting in \"AuthPAM_Enabled On\" lets apache throw an \"option unknown\"-error on reload Please help!
Answer 9: ;-) If you have this issue with ldap+apache2 try to add : AuthType Basic AuthBasicProvider ldap AllowOverride None Order allow,deny Allow from all
the options specified here works fine
Is solution perfect. Thanks.
I have tried Answer#4 , it works
Answer#4 works but I think that the order of the settings is important - I had the same settings but in different order and apache still logged errors. But now it works like a charm - Thanks!
If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people
struggling with this too.
If you want to be notified via email when this is solved, enter your email address here: