Upstream Forward

The upstream forward module reads the url from the policy request.

Example configuration

{
    "name": "example",
    "host": "example.com",
    "path": "/*",
    "modules": [
        {
            "name": "upstream-forward",
            "order": 0,
        }
    ]
}

Configuration attributes

None

Query parameters

Parameter Required Type Default Description
url Yes String The absolute (urlencoded) url to the resource to fetch.

Response headers

If multiple rate limits apply, the various limits will be separated in the response headers by whitespace.

Header Description
X-Upstream-Host The host to connect to.
X-Upstream-Path The upstream path to request.
X-Upstream-Port The port to connect to.
X-Upstream-Preserve-Host Whether the upstream request should preserve the original host header or not.
X-Upstream-Proto The protocol to use when connecting.
X-Upstream-URL The upstream URL to request.

®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203