Skip to content

Instantly share code, notes, and snippets.

@ytkhs
Created January 31, 2017 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ytkhs/53fe1852cccbaf7e949d0db98f7b125b to your computer and use it in GitHub Desktop.
Save ytkhs/53fe1852cccbaf7e949d0db98f7b125b to your computer and use it in GitHub Desktop.
ipによるアクセス制限 w/ apache24
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