Canedje
Posts: 263
Joined: Thu Mar 26, 2015 7:18 am

Protect a webpage director by .htaccess

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?

User avatar
Laurens-wuyts
Posts: 712
Joined: Wed Aug 21, 2013 7:35 pm
Location: Belgium
Contact: Website

Re: Protect a webpage director by .htaccess

Fri May 15, 2015 9:54 am

Have a look here, it can be helpful. ;)
https://help.ubuntu.com/community/Enabl ... ccessFiles

Laurens

Canedje
Posts: 263
Joined: Thu Mar 26, 2015 7:18 am

Re: Protect a webpage director by .htaccess

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

Return to “Troubleshooting”

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Yahoo [Bot] and 64 guests