Skip to content

Instantly share code, notes, and snippets.

@Remiii
Created August 19, 2014 13:03
Show Gist options
  • Select an option

  • Save Remiii/c68851dbafb698ae4d42 to your computer and use it in GitHub Desktop.

Select an option

Save Remiii/c68851dbafb698ae4d42 to your computer and use it in GitHub Desktop.
Htaccess / Htpasswd
AuthName "Auth require..."
AuthType Basic
AuthUserFile "/home/myuser/pathToHtpasswd/.htpasswd"
Require valid-user

Htaccess / Htpassord

Create htpasswd file

$ htpasswd -c ./pathToHtpassword/.htpasswd login

Create htaccess file

Cf. .htaccess file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment