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: 2008/11/11 11:37 (modification externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki