set up .htaccess and .htpasswd on web server

Using Web Server, PHP, MySQL, MariaDB.
Post Reply
User avatar
macguffin
Posts: 1
Joined: 29 May 2020, 17:16

set up .htaccess and .htpasswd on web server

Post by macguffin »

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
User avatar
TMroy
TerraMaster Team
Posts: 2578
Joined: 10 Mar 2020, 14:04
China

Re: set up .htaccess and .htpasswd on web server

Post by TMroy »

To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Post Reply