Skip to content

Instantly share code, notes, and snippets.

@LiamChapman
Created June 11, 2014 13:42
Show Gist options
  • Select an option

  • Save LiamChapman/80260d2fd94c71789c8e to your computer and use it in GitHub Desktop.

Select an option

Save LiamChapman/80260d2fd94c71789c8e to your computer and use it in GitHub Desktop.
restrict site with password login via apache .htaccess etc..
SetEnvIf HOST "mydomain.dev" local_env
AuthType Basic
AuthName "My Website"
AuthUserFile /document_root/path/for/project/.htpasswd
Require valid-user
Deny from all
Allow from env=local_env
Satisfy any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment