Hi team,
I recently migrated from VestaCP to HestiaCP and I am trying to understand why the file path I have in my .htaccess file (to set a directory password) is failing. Its causing a 500 error. The only change is the username which I updated accordingly but the file path is the same and O/S (Debian) is the same. I am sure its silly typo but can’t get it to work.
.htaccess
AuthGroupFile /dev/null
AuthType Basic
AuthUserFile /home/myusername/web/mydomain.com/.htpasswd/public_html/photos/.htpasswd
AuthName “Secure Area”
require valid-user
ErrorDocument 401 “Unauthorized Access”
File .htaccess is placed in both /public_html/photos & /mydomain
Should it work exactly the same as per VestaCP? I looked on the forums and it hasn’t come up so I am assuming I have done something wrong.
Thanks