Protect a webpage director by .htaccess


3 posts
by Canedje » Fri May 15, 2015 9:22 am
I try to protect a web page by using .htaccess.
I did make a file .htaccess in the protected directory with the next code:
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 di also make an file .htpasswd with an encrypted password.
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?
Posts: 248
Joined: Thu Mar 26, 2015 7:18 am
by Laurens-wuyts » Fri May 15, 2015 9:54 am
Have a look here, it can be helpful. ;)
https://help.ubuntu.com/community/Enabl ... ccessFiles

Laurens
User avatar
Posts: 712
Joined: Wed Aug 21, 2013 7:35 pm
Location: Belgium
by Canedje » Fri May 15, 2015 10:16 am
Laurens-wuyts wrote:Have a look here, it can be helpful. ;)
https://help.ubuntu.com/community/Enabl ... ccessFiles

Laurens

Thanks
It is working fine now
Posts: 248
Joined: Thu Mar 26, 2015 7:18 am