Configure > Reproxy Directives
This document describes the configuration directives of the reproxy handler.
A boolean flag (
OFF) indicating if the server should recognize the
X-Reproxy-URLheader sent from upstream servers.
If H2O recognizes the header, it fetches the contents of the resource specified by the header, and sends the contents as the response to the client. If the status code associated with the
X-Reproxy-URLheader is 307 or 308, then the method of the original request is used to obtain the specified resource. Otherwise, the request method is changed to
For example, an upstream server may send an URL pointing to a large image using the
X-Reproxy-URLheader stored on a distributed file system, and let H2O fetch and return the content to the client, instead of fetching the image by itself. Doing so would reduce the load on the application server.
- global, host, path, extension