2013-03-05 43 views
3

我在錯誤日誌文件中收到錯誤「AuthUserFile未在配置中指定」。如何解決它。 這是我的.htaccess文件,它位於亞馬遜文件服務器中。AuthUserFile未在配置錯誤中指定?

## mod auth_mysql 
AuthBasicAuthoritative Off 
AuthMYSQL on 
AuthMySQL_Authoritative on 
AuthMySQL_DB dbname 
Auth_MySQL_Host localhost 
Auth_MySQL_User username 
Auth_MySQL_Password password 
AuthMySQL_Password_Table tbl_name 
AuthMySQL_Username_Field user_name 
AuthMySQL_Password_Field password 
AuthMySQL_Empty_Passwords off 
AuthMySQL_Encryption_Types SHA1Sum 
# Standard auth stuff 
AuthType Basic 
AuthName "restricted zone" 

Require valid-user 

回答

0

該錯誤不關於你.htaccess而是主要httpd.conf Apache配置文件。將該行添加到您的httpd.conf,然後重新啓動您的httpd服務。

4

你要簡單地把一個

AuthUserFile /dev/null 

在你的.htaccess。這對我來說是訣竅。

對於其餘帶來auth_mysql配置的痛苦,您有我的全面理解:)