Created
January 31, 2017 01:17
-
-
Save ytkhs/53fe1852cccbaf7e949d0db98f7b125b to your computer and use it in GitHub Desktop.
ipによるアクセス制限 w/ apache24
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
RemoteIPHeader X-Forwarded-For | |
#RemoteIPTrustedProxy 172.16.0.0/16 | |
RemoteIPInternalProxy 172.16.0.0/16 | |
<Directory "/var/www/html"> | |
AllowOverride All | |
Options ExecCGI FollowSymlinks MultiViews | |
<RequireAny> | |
Require ip xx.xx.xx.xx | |
Require ip yy.yy.yy.yy | |
</RequireAny> | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment