bonjour,
j'ai créé mon fichier htaccess et mon fichier htpasswd.
Mais quand je lance mon application il ne me demande pas de login/mot de passe.
Voici mes configs.
ce que j'ai ajouté à la configuration Apache (httpd.conf)
1 2 3 4 5 6
|
<Directory "C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\data\localweb\MonAppli\admin">
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory> |
Le contenu de mon fichier htaccess
1 2 3 4 5 6
|
AuthUserFile "C:\.htpasswd"
AuthGroupFile
AuthName "Accès protégé"
AuthType Basic
Require valid-user |
Le contenu de mon fichier .htpasswd
admin:$1$7u1.Cu..$IF.nm0CJm8YOo177.rbpA/
Mais quand je lance mon application, j'ai accès aux fichiers de mon repertoire qui contient le fichier .htaccess. Il n'ya donc aucune protection.
Merci bien de votre aide!
Partager