<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sfujiwara</author_name>
  <author_url>https://blog.hatena.ne.jp/sfujiwara/</author_url>
  <blog_title>酒日記 はてな支店</blog_title>
  <blog_url>https://sfujiwara.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>アプリケーションで認証後 S3 のコンテンツを返したかったのだけど、nginx で BASIC 認証を掛けていたらうまくいかなかった、というお話。 Amazon S3 の認証トークン付き URL をアプリケーションで生成し X-Accel-Redirect ヘッダに出力 nginx が S3 から取得してきてクライアントに返す という動作をさせたくて、以下のように設定。 # nginx.conf location = /reproxy { internal; set $reproxy $upstream_http_x_reproxy_url; proxy_pass $reproxy; prox…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsfujiwara.hatenablog.com%2Fentry%2F20110406%2F1302077166&quot; title=&quot;nginxでX-Accel-Redirectを使う場合に余計なヘッダを削除する - 酒日記 はてな支店&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>2011-04-06 17:06:06</published>
  <title>nginxでX-Accel-Redirectを使う場合に余計なヘッダを削除する</title>
  <type>rich</type>
  <url>https://sfujiwara.hatenablog.com/entry/20110406/1302077166</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
