Mettre en place un fichier .htaccess
Fermé
xunil2003
Messages postés
761
Date d'inscription
mercredi 17 novembre 2004
Statut
Membre
Dernière intervention
24 mars 2024
-
Modifié par xunil2003 le 18/05/2012 à 11:47
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 - 19 mai 2012 à 16:11
xunil2003 Messages postés 761 Date d'inscription mercredi 17 novembre 2004 Statut Membre Dernière intervention 24 mars 2024 - 19 mai 2012 à 16:11
A voir également:
- Mettre en place un fichier .htaccess
- Fichier rar - Guide
- Fichier host - Guide
- Fichier iso - Guide
- Comment réduire la taille d'un fichier - Guide
- Comment ouvrir un fichier epub ? - Guide
4 réponses
kevin76110
Messages postés
4273
Date d'inscription
vendredi 14 août 2009
Statut
Membre
Dernière intervention
27 mars 2013
872
18 mai 2012 à 11:49
18 mai 2012 à 11:49
'lut,
Je me rappelle avoir eu un soucis similaire.
Voici mon code, qui a résolu le soucis:
.htaccess:
userliste.txt (qui correspond à .htpasswd):
++
K.
Je me rappelle avoir eu un soucis similaire.
Voici mon code, qui a résolu le soucis:
.htaccess:
PerlSetVar AuthFile /dossiersécurisé/userliste.txt AuthName "Acces Restreint" AuthType Basic require valid-user
userliste.txt (qui correspond à .htpasswd):
mon_login:mon_mot_de_passe
++
K.
xunil2003
Messages postés
761
Date d'inscription
mercredi 17 novembre 2004
Statut
Membre
Dernière intervention
24 mars 2024
14
Modifié par xunil2003 le 18/05/2012 à 12:43
Modifié par xunil2003 le 18/05/2012 à 12:43
Bonjour,
j'ai essayé, Mozilla m'affiche dans l'onglet "500 International serveur error"
et m'affiche dans le navigateur
/var/log/apache2/error.log
[Fri May 18 12:24:01 2012] [alert] [client 192.168.0.2] /var/www/monsite/admin/.htaccess: Invalid command 'PerlSetVar', perhaps misspelled or defined by a module not included in the server configuration
Haf ca marche pas
Merci.
j'ai essayé, Mozilla m'affiche dans l'onglet "500 International serveur error"
et m'affiche dans le navigateur
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost 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.
/var/log/apache2/error.log
[Fri May 18 12:24:01 2012] [alert] [client 192.168.0.2] /var/www/monsite/admin/.htaccess: Invalid command 'PerlSetVar', perhaps misspelled or defined by a module not included in the server configuration
Haf ca marche pas
Merci.
kevin76110
Messages postés
4273
Date d'inscription
vendredi 14 août 2009
Statut
Membre
Dernière intervention
27 mars 2013
872
18 mai 2012 à 16:37
18 mai 2012 à 16:37
'lut,
Sûrement alors que ton localhost ne prend pas ceci en charge, ou bien il faut le configurer.
Mais c'est pas une erreur de code, je pense.
Sûrement alors que ton localhost ne prend pas ceci en charge, ou bien il faut le configurer.
Mais c'est pas une erreur de code, je pense.
xunil2003
Messages postés
761
Date d'inscription
mercredi 17 novembre 2004
Statut
Membre
Dernière intervention
24 mars 2024
14
19 mai 2012 à 16:11
19 mai 2012 à 16:11
Bonjour,
J'ai trouvé c'est automatiquement codifié en md5 par linux !
vérification
root@debian:/var/www/monsite/admin# cat /var/www/monsite/monsite/.htpasswd
admin:jrvUXsYdpk.z.
root@debian:/var/www/monsite/admin#
htpasswd -(les options)
htpasswd -option .htaccess utilisateur
-C créer un nouvelle utilisateur
-D supprime un utilisateur
-d encode au format supporté par windows
-m encode au format MD5, par default
Je voudrai savoir comment changer/modifier le mot de passe d'un utilisateur ?
Merci
J'ai trouvé c'est automatiquement codifié en md5 par linux !
root@debian:~# cd /var/www/monsite/admin root@debian:/var/www/monsite/admin# htpasswd -c .htpasswd admin New password: Re-type new password: Adding password for user admin root@debian:/var/www/monsite/admin#
vérification
root@debian:/var/www/monsite/admin# cat /var/www/monsite/monsite/.htpasswd
admin:jrvUXsYdpk.z.
root@debian:/var/www/monsite/admin#
htpasswd -(les options)
htpasswd -option .htaccess utilisateur
-C créer un nouvelle utilisateur
-D supprime un utilisateur
-d encode au format supporté par windows
-m encode au format MD5, par default
Je voudrai savoir comment changer/modifier le mot de passe d'un utilisateur ?
Merci