.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

Заранее спасибо !

0

Решение

От официальная документация:


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

Другие решения

Других решений пока нет …