<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lesamoureuses</author_name>
  <author_url>https://blog.hatena.ne.jp/lesamoureuses/</author_url>
  <blog_title>こんにちはこんにちはmonmonです！</blog_title>
  <blog_url>https://monmon.hateblo.jp/</blog_url>
  <categories>
    <anon>nginx</anon>
    <anon>aws</anon>
  </categories>
  <description>https かどうかをサーバ側で判断したいんだけど、ELB 経由で nginx に繋いでいるか、直接 nginx に繋いでいるかで値が変わってくるのでどうしようかなと思って調べた。ELB 経由の場合は ELB で https を受け取って、後ろに http で投げてくる。 $scheme = http, $http_x_forwarded_proto = https な状態。 直接 nginx に繋いでいる場合は $scheme = https, $http_x_forwarded_proto = '' な状態。ということで、 server ブロックの外で map $http_x_forwar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmonmon.hateblo.jp%2Fentry%2F2016%2F02%2F17%2F182030&quot; title=&quot;ELB 使ってる時と使ってない時で nginx の X-Forwarded-Proto を変える - こんにちはこんにちはmonmonです！&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>2016-02-17 18:20:30</published>
  <title>ELB 使ってる時と使ってない時で nginx の X-Forwarded-Proto を変える</title>
  <type>rich</type>
  <url>https://monmon.hateblo.jp/entry/2016/02/17/182030</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
