set up .htaccess and .htpasswd on web server
Posted: 29 May 2020, 17:22
Hi I have F2-210 TOS 4.1.24
I am trying to set up password protection for the web server.
I have added .htaccess and .htpassword to the web root folder.
The .htaccess file looks like this:
AuthName "Prompt"
AuthType Basic
AuthUserFile /etc/base/web/.htpasswd
Require valid-user
The password prompt does appear but the password/user is not recognised. If there any way to access the apache logs to try and see what is going on?
I suspect the AuthUserFile path may be wrong but this was the DOCUMENT_ROOT given by phpInfo.
Many thanks
Matt
I am trying to set up password protection for the web server.
I have added .htaccess and .htpassword to the web root folder.
The .htaccess file looks like this:
AuthName "Prompt"
AuthType Basic
AuthUserFile /etc/base/web/.htpasswd
Require valid-user
The password prompt does appear but the password/user is not recognised. If there any way to access the apache logs to try and see what is going on?
I suspect the AuthUserFile path may be wrong but this was the DOCUMENT_ROOT given by phpInfo.
Many thanks
Matt