Skip to content

Instantly share code, notes, and snippets.

@alchemycs
Created November 29, 2010 09:09
Show Gist options
  • Save alchemycs/719758 to your computer and use it in GitHub Desktop.
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
<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