Last active
August 29, 2015 14:02
-
-
Save jrodriguez-ifuelinteractive/e41543870e9fa38f3e0a to your computer and use it in GitHub Desktop.
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
#Apache >=2.4 | |
<Directory /path/to/webroot> | |
AllowOverride All | |
AuthUserFile /etc/apache2/.htpasswd | |
AuthType Basic | |
AuthName "Restricted Content" | |
<Limit GET> | |
Require valid-user | |
</Limit> | |
Require ip xxx.xxx.xxx.xxx | |
Satisfy any | |
</Directory> | |
#---- | |
#Apache < 2.4 | |
<Directory /path/to/webroot> | |
AllowOverride All | |
AuthType Basic | |
AuthName "Restricted Content" | |
AuthUserFile /etc/apache2/.htpasswd | |
<Limit GET> | |
Require valid-user | |
</Limit> | |
Satisfy any | |
Deny from all | |
Allow from xxx.xxx.xxx.xxx | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment