Created
November 29, 2010 09:09
-
-
Save alchemycs/719758 to your computer and use it in GitHub Desktop.
Sample snippet for allowing access from an IP address OR with username/password credentials
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
<Directory /var/www/docment.root.path> | |
order allow,deny | |
authType Basic | |
authName "Admin Access Only: Site is being archived" | |
authUserFile /var/www/HTPASSWORD | |
Allow from 192.168.0.1 | |
Require valid-user | |
Satisfy Any | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment