Created
December 4, 2013 22:56
-
-
Save koryteg/7797142 to your computer and use it in GitHub Desktop.
setup htaccess passwords
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
http://www.htaccesstools.com/htaccess-authentication/ | |
AuthType Basic | |
AuthName "staging" | |
AuthUserFile /home/content/84/10444784/html/staging/.htpasswd | |
Require valid-user | |
<?php | |
$dir = dirname(__FILE__); | |
echo "<p>Full path to this dir: " . $dir . "</p>"; | |
echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment