I have a page in
midominio.com.co/descargas/mibd.html
this page is hosted in webroot/descargas/mibd.html
I'm creating an htaccess there, this is your location
webroot/descargas/.htaccess
and I think I have some error calling it or creating it because it does not work, then I show you what I get:
.htpasswd
Andres:$apr1$jX8xN1hg$VJJSDz6GR5qtQVkV40EQA0
.htaccess
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /var/www/midominio.com.co/descargas/.htpasswd
AuthGroupFile /dev/null
require valid-user
The idea is that when I go to the page midominio.com.co/descargas/mibd.html
I ask for a password to see the content
For security reasons I can not give the true url of "mydomain" and "mibd.html" you see your real name in the error image.