Created
December 13, 2013 10:21
-
-
Save davidthingsaker/7942385 to your computer and use it in GitHub Desktop.
Laravel HTTP auth
This file contains 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
Create an .htaccess file in the webroot: | |
AuthUserFile /app/www/public/.htpasswd | |
AuthType Basic | |
AuthName "Restricted Access" | |
Require valid-user | |
Create a .htpasswd file: | |
htpasswd -c /app/www/public/.htpasswd [username] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment