groups

Link to this snippet:


Download to Code Collector

language: Other
licence: Other

HTACCESS : proteger un repertoire avec une demande d'authentification

options: send to code collectorview all pierre alexandre payet's snippets
AuthType Basic
AuthName "Message to display in the authentification dialog"
AuthUserFile /chemin/absolue/vers/le/.htpasswd
Require valid-user

#ce fichier est à placé dans le repertoire que le souhaite proteger avec une authentification
#Le .htpasswd peut lui être placé ailleurs