SkayaWiki

HtAccess

JeromePetazzoni :: DerniersChangements :: DerniersCommentaires? :: ParametresUtilisateur :: http://www.enix.org/ :: Vous êtes 18-97-14-90.crawl.commoncrawl.org


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]