Skip to content

Instantly share code, notes, and snippets.

@riywo
Created March 1, 2011 11:12
Show Gist options
  • Save riywo/848984 to your computer and use it in GitHub Desktop.
Save riywo/848984 to your computer and use it in GitHub Desktop.
ApacheでBasic認証かけつつ特定IPは認証はずす
<Directory />
AuthUserFile /path/to/.htpasswd
AuthName "f0ck you"
AuthType Basic
Require valid-user
Satisfy Any
# Require valid-user 別のディレクティブで指定する場合
Order deny,allow
Deny from all
Allow from 192.168.0.0/24
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment