Skip to content

Instantly share code, notes, and snippets.

@bogdanRada
Forked from bbrewer97202/heroku-htaccess.md
Created May 8, 2014 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdanRada/84531ab6e8f6b0bce62c to your computer and use it in GitHub Desktop.
Save bogdanRada/84531ab6e8f6b0bce62c 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