LoginSignup
2
2

More than 5 years have passed since last update.

ELB配下のApacheIP制限

Last updated at Posted at 2016-03-01

IP制限

ELB配下のApacheでディレクトリ単位でIP制限したい時のメモ

htaccess

X-Forwarded-ForからIPを取得しないと、内部IPになるので注意。

SetEnvIf X-Forwarded-For "xxx.xxx.xxx.xxx" allow_ip_address
Order deny,allow
Deny from all
Allow from env=allow_ip_address
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2