Skip to content

Instantly share code, notes, and snippets.

@hashimotor
Created May 12, 2013 00:30
Show Gist options
  • Save hashimotor/5561922 to your computer and use it in GitHub Desktop.
Save hashimotor/5561922 to your computer and use it in GitHub Desktop.
ホスト制限とユーザ認証を併用する
<Directory /var/www/>
AuthType Digest
AuthName <realm>
AuthDigestDomain <path>
AuthUserFile <htdigest>
Order deny,allow
Deny from all
Allow from <ipaddress>
Require valid-user
Require ip <ipaddress>
Satisfy any
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment