2014-11-03 35 views
0

因此,我儘可能地嘗試了所有可能的路徑,但每當我發生內部服務器錯誤時,也許我會忽視任何人有想法?.htacces .htpasswd導致內部服務器錯誤的路徑

路徑.htacces:/domains/domain.com/public_html/route/portfolio/inc

路徑htpasswd的/domains/domain.com/public_html/route/portfolio/inc/etc

htacces:

AuthUserFile /public_html/route/portfolio/inc/etc 
AuthName "Please Enter Password" 
AuthType Basic 
Require valid-user 

在此先感謝!

+1

你的意思是'.htaccess'嗎? – voromax 2014-11-03 21:25:27

回答

0

official documentation

The AuthUserFile directive sets the name of a textual file containing the list of users and passwords for user authentication. File-path is the path to the user file. If it is not absolute, it is treated as relative to the ServerRoot.

在你的情況的路徑視爲絕對的,因爲它與/啓動。您必須將其更改爲/domains/domain.com/public_html/route/portfolio/inc/etc./public_html/route/portfolio/inc/etc

+0

感謝您的回覆,我已閱讀文檔並嘗試了這些路徑以及仍然沒有運氣壽。 – LvdM 2014-11-03 21:26:24

相關問題