Serveur Apache / .htaccess et .htpasswd

Fermé
Terredusud - Modifié le 7 sept. 2020 à 19:04
Bonjour,

J'utilise .htaccess et .htpasswd pour limiter l'accès.

.htaccess
AuthName "Page d'administration protégée" 
AuthType Basic
AuthUserFile "/home/monuser/www/repertoire/.htpasswd"
Require valid-user


.htpasswd
user1:mdp1_crypte
user2:mdp2_crypte


En exécutant un script dans ce répertoire, j'obtiens un message d'erreur.
Que dois-je faire?
Merci d'avance.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] 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.