[1] [[Webアプリケーション]]における[DFN[[RUBY[逆串][リバース・プロキシ]@en[reverse proxy]]]]は、
[[クライアント]]からの [[HTTP]] [[アクセス]]を受け付け、適当な[[バックエンド鯖]]等に処理を振り分ける[[アプリケーション層スイッチ]]です。

* 仕様書

[REFS[
- [2] [CITE@en[RFC 7230 - Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing]] ([TIME[2014-06-07 01:59:35 +09:00]] 版) <https://tools.ietf.org/html/rfc7230#page-10>
]REFS]

* 定義

[3] [RUBYB[[[関門]]]@en[gateway]] ([DFN[[RUBYB[逆串]@en[reverse proxy]]]])
は、[[外向き]]の[[接続]]については[[起源鯖]]として動作するものの、
[[受信]]した[[要求]]を翻訳して[[内向き]]に他の[[鯖]](群)に転送するような[RUBYB[[[中間器]]]@en[intermediary]]です。
[SRC[>>2]]

* 処理

[5] [[HTTPプロキシ]]参照。

* 歴史

[1] [[HTTP]] ([[RFC 1945]] 1.2, [[RFC 2068]] 1.3, [[RFC 2616]] 1.3)

>
:gateway:A server which acts as an intermediary for some other server.
Unlike a proxy, a gateway receives requests as if it were the
origin server for the requested resource; the requesting client
may not be aware that it is communicating with a gateway. [DEL[[INS[{1945}]] Gateways are often used as server-side portals through network firewalls and as protocol translators for access to resources stored on non-HTTP systems.]]

:関門:他のサーバーとの媒介として動作する[[サーバー]]。
[[串]]とは異なり、関門は要求を要求された[[資源]]の[[起源サーバー]]であるかのように受信します。
要求するクライアントは関門と通信していることに気づかないかもしれません。 [DEL[関門は、しばしばネットワーク防火壁のサーバー側玄関として使われたり、非 HTTP システムに蓄積されている資源に接続するためのプロトコル翻訳器として使われたりします。]]

[4] [CITE@en[RFC 5537 - Netnews Architecture and Protocols]]
( ([TIME[2014-09-14 17:08:11 +09:00]] 版))
<http://tools.ietf.org/html/rfc5537#page-5>