I did make a file .htaccess in the protected directory with the next code:
I di also make an file .htpasswd with an encrypted password.
Code: Select all
AuthUserFile /var/www/thermostaat/.htpasswd AuthGroupFile /dev/null AuthName "Password Protected Area" AuthType Basic <limit GET POST> require valid-user </limit>
I did that by using an external website.
The webpage at this directory is still not protected by a password.
What am I doing wrong?