htpasswd, la commande pour protéger vos sites web par un login + mot de passe

   cd
   mkdir secret
   cd secret
   htpasswd -c .htpasswd pumpkin
     [ you're prompted for the password for pumpkin]
     [ if you have other users enter the following. Don't use the -c]
   htpasswd .htpasswd user2
   htpasswd .htpasswd user3

.htaccess

AuthUserFile /home/radeff/.htpasswd
AuthGroupFile /dev/null
AuthName "Intranet"
AuthType Basic

<Limit GET>
require valid-user
</Limit>

Apache Manual Page: htpasswd

  • info/htpasswd.txt
  • Dernière modification: 2018/07/18 09:45
  • par radeff