Created
March 1, 2011 11:12
-
-
Save riywo/848984 to your computer and use it in GitHub Desktop.
ApacheでBasic認証かけつつ特定IPは認証はずす
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 /> | |
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