Page 1 sur 1

Protection sur dossier Administration

Posté : 18 mars 2016, 17:46
par andre260
Sur notre sitre j'ai mis les 2 fichiers (.htaccess & .htpasswd)
l'AuthUserFile est bien configuré
AuthUserFile /home/a---iu/www/index.php/Administration/.htpasswd
j'ai bien la fenêtre d'identification mais message d'erreur du seveur
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log. "
J'ai demandé a OVH notre hebergeur mais il fait la sourde oreille
pourriez vous m'en dire plus svp
merci

Re: Protection sur dossier Administration

Posté : 18 mars 2016, 18:23
par @rthur
Bonjour,

Internal Server Error c'est que tu as une erreur dans ton fichier .htaccess

Re: Protection sur dossier Administration

Posté : 18 mars 2016, 19:27
par andre260
voila le contenu du htaccess
AuthUserFile /home/a----u/www/index.php/Administration/.htpasswd
<Files Infos_club.php>
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic
</Files>
<limit GET>
require valid-user
</Limit>

Re: Protection sur dossier Administration

Posté : 21 mars 2016, 13:02
par Ryle
Bonjour,

Je ne connais pas l'architecture de ton serveur, mais le chemin du AuthUserFile me semble incorrecte... tu aurais un répertoire index.php qui contiendrait un dossier administration ? :)

Re: Protection sur dossier Administration

Posté : 22 mars 2016, 18:14
par andre260
excuse de ma reponse tardive
voici mon AuthUserFile /home/acacycloiu/www/Administration/Admin_1/inscription/.htpasswd
il me retourne ceci (alors que j'ai rentré user et mdp)
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.

Re: Protection sur dossier Administration

Posté : 23 mars 2016, 13:30
par @rthur
le login/mot de passe n'est pas correct, donc soit tu t'es trompé en le tappant (oui, ça arrive à tout le monde donc je le dis quand même), soit tu as mal encodé ton mot de passe dans le .htpasswd

Re: Protection sur dossier Administration

Posté : 23 mars 2016, 18:16
par andre260
merci en fait le mot de passe n'est pas crypté
que me me conseillez vous (site ou autre ) pour crypter
merci

Re: Protection sur dossier Administration

Posté : 23 mars 2016, 19:56
par @rthur
Vois avec ton hébergeur pour cela.
Si c'est un gros hébergeur connu, Google devrait t'aider avec le mot clé htpasswd

Re: Protection sur dossier Administration

Posté : 24 mars 2016, 10:41
par andre260
Bonjour et merci
cela fonctionne ovh propose des solutions de cryptage