Created
June 11, 2014 13:42
-
-
Save LiamChapman/80260d2fd94c71789c8e to your computer and use it in GitHub Desktop.
restrict site with password login via apache .htaccess etc..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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