apache - .htaccess doesn't ask me for password -


i'm trying protect directory adding .htaccess , .htpasswd instead asking me password, goes home page of site directly.

my .htaccess being read (put garbage in , got 500 error).

here's .htaccess :

authname "page d'administration protégée" authtype basic authuserfile "/applications/mamp/htdocs/backoffice_mollanger/app/.htpasswd" require valid-user 

and .htpasswd

admin:gl0iioiri2n6m 

first of all, remove speech marks have around .htpasswd location, should not there. if not try using this, can specify directory want protect stating file name in replace of example:

<files /example> authname "page d'administration protégée" authtype basic authuserfile /applications/mamp/htdocs/backoffice_mollanger/app/.htpasswd require valid-user </files> 

Comments

Popular posts from this blog

javascript - Why Selenium can't find an element that is graphically visible -

java - How to compare two classes -

mysql - Gateway Timeout Error on Insert 70000 record using Hibernate in Java -