<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>aws</anon>
    <anon>apache</anon>
  </categories>
  <description>AWSでCloudFront → ELB → EC2の構成を採用する場合に、IPアドレスによるアクセス制御を行う方法を説明します。 方法1: EC2上のWebサーバによるアクセス制御 CloudFrontやELBはリクエストを受けると x-forwarded-for ヘッダにクライアントのIPアドレスを付与します。 このヘッダを利用してIPアドレスによるアクセス制御を実現できます。 CloudFrontとELBを組み合わせる場合は下記のようなヘッダを受け取ります。 クライアント ↓ CloudFront ↓ x-forwarded-for: &lt;クライアントのIPアドレス&gt; ELB ↓ x-fo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2017%2F09%2F13%2F143702&quot; title=&quot;CloudFront→ELB→EC2構成におけるIPアドレスのアクセス制御 - GeekFactory&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-13 14:37:02</published>
  <title>CloudFront→ELB→EC2構成におけるIPアドレスのアクセス制御</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2017/09/13/143702</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
