{"id":356,"date":"2020-07-05T17:57:35","date_gmt":"2020-07-05T08:57:35","guid":{"rendered":"https:\/\/jidouka.work\/?p=356"},"modified":"2020-07-05T18:01:28","modified_gmt":"2020-07-05T09:01:28","slug":"application-gateway-%e3%81%ae%e3%83%90%e3%83%83%e3%82%af%e3%82%a8%e3%83%b3%e3%83%89%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%a7%e3%82%af%e3%83%a9%e3%82%a4%e3%82%a2%e3%83%b3%e3%83%88%e3%81%ae","status":"publish","type":"post","link":"https:\/\/jidouka.work\/?p=356","title":{"rendered":"Application Gateway \u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u9001\u4fe1\u5143 IP \u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Azure \u306e Application Gateway V1\/V2 \u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30d7\u30fc\u30eb\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u304c\u53d7\u4fe1\u3059\u308b HTTP Request \u306f\u9001\u4fe1\u5143 IP \u30a2\u30c9\u30ec\u30b9\u304c Application Gateway \u306e IP \u30a2\u30c9\u30ec\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u306a\u304c\u3089\u3001Application Gateway \u306f \u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b HTTP Request \u306e\u30d8\u30c3\u30c0\u30fc\u306b X-Forwarded-For \u30d8\u30c3\u30c0\u30fc\u3092\u3064\u3051\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30d8\u30c3\u30c0\u30fc\u306e\u5024\u306f\u300c\u30a2\u30af\u30bb\u30b9\u5143\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e IP \u30a2\u30c9\u30ec\u30b9:\u30dd\u30fc\u30c8\u756a\u53f7\u300d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3053\u306e\u5024\u3092\u8aad\u307f\u53d6\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304d\u3066\u3044\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u753b\u50cf\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30b5\u30fc\u30d0\u30fc\u3067 V2 \u304b\u3089\u9001\u4fe1\u3055\u308c\u305f HTTP \u306e GET \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u305f\u7d50\u679c\u3002<\/p>\n<p><a href=\"https:\/\/jidouka.work\/wp-content\/uploads\/2020\/07\/appgwv2httpreqtobackend.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jidouka.work\/wp-content\/uploads\/2020\/07\/appgwv2httpreqtobackend-300x155.jpg\" alt=\"Application Gateway V2 \u306e HTTP Request\" width=\"300\" height=\"155\" class=\"alignnone size-medium wp-image-357\" srcset=\"https:\/\/jidouka.work\/wp-content\/uploads\/2020\/07\/appgwv2httpreqtobackend-300x155.jpg 300w, https:\/\/jidouka.work\/wp-content\/uploads\/2020\/07\/appgwv2httpreqtobackend-768x396.jpg 768w, https:\/\/jidouka.work\/wp-content\/uploads\/2020\/07\/appgwv2httpreqtobackend-1024x528.jpg 1024w, https:\/\/jidouka.work\/wp-content\/uploads\/2020\/07\/appgwv2httpreqtobackend.jpg 1594w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4e00\u5fdc\u3053\u306e\u3053\u3068\u306f\u4ee5\u4e0b\u306e URL \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3082\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>\u8981\u6c42\u3078\u306e\u5909\u66f4<br \/>\n<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/application-gateway\/how-application-gateway-works#modifications-to-the-request\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/application-gateway\/how-application-gateway-works#modifications-to-the-request<\/a><\/p>\n<blockquote><p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3067\u306f\u3001\u8981\u6c42\u304c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u8ee2\u9001\u3055\u308c\u308b\u524d\u306b\u3001\u3059\u3079\u3066\u306e\u8981\u6c42\u306b 4 \u3064\u306e\u8ffd\u52a0\u30d8\u30c3\u30c0\u30fc\u304c\u633f\u5165\u3055\u308c\u307e\u3059\u3002 \u3053\u308c\u3089\u306e\u30d8\u30c3\u30c0\u30fc\u306f\u3001x-forwarded-for\u3001x-forwarded-proto\u3001x-forwarded-port\u3001\u304a\u3088\u3073 x-original-host \u3067\u3059\u3002 x-forwarded-for \u30d8\u30c3\u30c0\u30fc\u306e\u5f62\u5f0f\u306f\u3001IP:\u30dd\u30fc\u30c8\u306e\u30b3\u30f3\u30de\u533a\u5207\u308a\u30ea\u30b9\u30c8\u3067\u3059\u3002<\/p><\/blockquote>\n<h2>IIS \u3067 X-Forwarded-For \u306e\u5024\u3092\u30ed\u30b0\u306b\u8a18\u9332\u3059\u308b<\/h2>\n<p>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066 IIS \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e URL \u306b\u8a18\u8f09\u306e\u300c 2. Enhanced Logging \u203bIIS 8.5 \u4ee5\u964d\u300d\u306e<br \/>\n\u624b\u9806\u306b\u305d\u3063\u3066\u8a2d\u5b9a\u3059\u308c\u3070 X-Forwarded-For \u306e\u5024\u3092\u30ed\u30b0\u306b\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&#8220;X-Forwarded-For&#8221; \u30d8\u30c3\u30c0\u30fc\u3092 IIS\u30ed\u30b0\u306b\u51fa\u529b\u3057\u305f\u3044\uff01<br \/>\n<a href=\"https:\/\/docs.microsoft.com\/en-us\/archive\/blogs\/jpiis\/x-forwarded-for-header\">https:\/\/docs.microsoft.com\/en-us\/archive\/blogs\/jpiis\/x-forwarded-for-header<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure \u306e Application Gateway V1\/V2 \u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30d7\u30fc\u30eb\u306b\u8a2d\u5b9a\u3055\u308c\u3066 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":359,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[29],"class_list":["post-356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","tag-application-gateway"],"_links":{"self":[{"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/posts\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=356"}],"version-history":[{"count":2,"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/posts\/356\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/posts\/356\/revisions\/360"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=\/wp\/v2\/media\/359"}],"wp:attachment":[{"href":"https:\/\/jidouka.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jidouka.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}