SkayaWiki

HtAccess

JeromePetazzoni :: DerniersChangements :: DerniersCommentaires? :: ParametresUtilisateur :: http://www.enix.org/ :: Vous êtes ec2-18-218-3-204.us-east-2.compute.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]