OVH Community, votre nouvel espace communautaire.

proteger un dossier avec un .htacces


Postkantoor
03/08/2006, 09h19
Bonjour,

protéger un dossier avec un .htaccess

J'ai créé un dossier nommé :secret sur mon SERVEUR
j'y ai placé trois fichiers: ci-joints

.htaccess
.htpasswd
calendar.php

Fichier: .htaccess
AuthName "Réservé aux membres du Bureau"
AuthType Basic
AuthUserFile "/home.4/c/y/c/cyclolam/www/secret/.htpasswd "
Require valid-user

Fichier: .htpasswd
jean:$1$dE3.iC..$HVFCwvB67cTwfEX8u92IR/
Paul:$1$s92.FD2.$gG/rIGN.nTIJ4sCX8lUoP0
Andre:$1$jD..wv0.$XCEYGyq9w6LJuuHzluQgf0



Fichier: calendar.php


Quand j'appelle le fichier calendar sur mon site j'obtiens bien la fenêtre d'invite avec
Nom utilisateur et Mot de Passe. Mais quand j'instruis ce formulaire,la fenêtre réapparaît
toujours.Je n'arrive pas à ouvrir le fichier calendar.

et après moult tentatives j'obtiens le message suivant:

Authorization Required
This server could not verify that you are
authorized to access the document requested.
Either you supplied the wrong credentials
(e.g., bad password), or your browser
doesn't understand how to supply the credentials required.

--------------------------------------------------------------------------------

Apache/1.3.36 Server at cyclolambesc.com Port 80




J'ai recommencé plusieurs fois le script des fichiers .htaccess et.htpasswd,


Pouvez-vous m'aider MERCI (je ne trouve pas mon erreur).
protéger un dossier avec un .htaccess