SkayaWiki

HtAccess

JeromePetazzoni :: DerniersChangements :: DerniersCommentaires? :: ParametresUtilisateur :: http://www.enix.org/ :: Vous êtes ec2-54-92-142-198.compute-1.amazonaws.com


grep Auth .htaccess >&/dev/null &&
echo "There is already a Auth section in your .htaccess file, aborting." ||
{ cat >> .htaccess <<EOF
AuthUserFile $PWD/.htpasswd
AuthName "Private Area"
AuthType Basic
require valid-user
EOF
echo "Auth section added to your .htaccess file."
}
touch .htpasswd
htpasswd -mb .htpasswd yourlogin yourpassword

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]