Skip to content

Instantly share code, notes, and snippets.

@dandrews
Forked from bbrewer97202/heroku-htaccess.md
Created May 13, 2013 05:08
Show Gist options
  • Save dandrews/5566283 to your computer and use it in GitHub Desktop.
Save dandrews/5566283 to your computer and use it in GitHub Desktop.

Create an .htaccess file in the webroot:

AuthUserFile /app/www/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user

Create a .htpasswd file:

htpasswd -c /app/www/.htpasswd [username]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment