-
Notifications
You must be signed in to change notification settings - Fork 4
/
738.txt
41 lines (28 loc) · 1.45 KB
/
738.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
* 仕様書
[REFS[
- [2] [CITE@en[RFC 7239 - Forwarded HTTP Extension]] ([TIME[2014-09-07 05:21:07 +09:00]] 版) <https://tools.ietf.org/html/rfc7239#section-5.3>
]REFS]
* [CODE(HTTP)@en[Forwarded:]] ヘッダー [CODE(HTTP)@en[host]] 引数
[3] [CODE(HTTP)@en[[[Forwarded:]]]] [[ヘッダー]]の
[DFN[[CODE(HTTP)@en[[[host]]]]]] [[引数]]は、
[[串]]で[[転送]]される前の [CODE(HTTP)@en[[[Host:]]]] [[ヘッダー]]の値を表します
[SRC[>>2]]。
;; [7] [[要求対象]]が[[絶対URL]]でその[[ホスト]]を書き換えた場合に適用できるとは明記されていません。
[4] これは[[串]]で [CODE(HTTP)@en[[[Host:]]]]
を内部の[[ホスト名]]に書き換えるような場合に使えます [SRC[>>2]]。
** 値
[5] 値の構文は [CODE(HTTP)@en[[[Host:]]]] [[ヘッダー]]と同じです [SRC[>>2]]。
;; [6] [[ヘッダー]]ではないので、値の前後に [[OWS]] は認められていないようです。
* 実装
[1] [CITE[プロキシ変換仕様 | Durianマニュアル]]
([TIME[2011-08-16 17:56:49 +09:00]] 版)
<http://durian.symmetric.jp/dev/doc/technical/proxy_conversion.html>
[FIG(quote)[
[FIGCAPTION[
[8] [CITE@en[mod_proxy - Apache HTTP Server Version 2.4]]
([TIME[2015-02-15 17:51:02 +09:00]] 版)
<http://httpd.apache.org/docs/current/en/mod/mod_proxy.html#x-headers>
]FIGCAPTION]
> X-Forwarded-Host
> The original host requested by the client in the Host HTTP request header.
]FIG]