2012-10-16 38 views
0

這是我htaccess文件目錄/home/domain.nl/public_html/helpdeskDirectory認證工作不

Require user agent8 agent9 agent10 
AuthType  Basic 
AuthName  this_protected_area 
AuthUserFile /home/domain.nl/public_html/.htpasswd 

但是,當我去domain.nl/helpdesk我得到一個324錯誤(ERR_EMPTY_RESPONSE)。那麼最新錯誤?我確定htpasswd文件位於正確的位置。

在錯誤日誌我看到這個錯誤:

(13)Permission denied: Couldn't read /home/domain.nl/public_html/errors/.htaccess, closing connection. 
+0

好吧,和往常一樣的問題:服務器日誌報告什麼? – arkascha

+0

(13)權限被拒絕:無法讀取/home/domain.nl/public_html/errors/.htaccess,關閉連接。 –

+1

你有沒有定製的401頁面?它發生在'/ error'目錄嗎? –

回答

0

我將public_html/errors/dirrectory重命名爲errors2及其現在的工作。感謝您的幫助!

0

嘗試用這種改變你的.htaccess:

Require valid-user 
AuthType  Basic 
AuthName  this_protected_area 
AuthUserFile /home/domain.nl/public_html/.htpasswd 

確保的.htaccess被啓用,如果不行請複製/在您的問題中粘貼error.log文件的相關部分。

+0

Nope不工作:( –

+1

'無法讀取/ home/monteuraanhuis.nl/public_html/errors/.htaccess'意味着您有一些自定義錯誤處理程序試圖將您重定向到'/ errors',並且該目錄不存在或不可訪問您還可以發佈access.log的相關部分 – anubhava

+0

我已經檢查過/ helpdesk目錄和根目錄中的htaccess文件,但沒有重定向到/ errors目錄 –