mirror of
https://github.com/caddyserver/website.git
synced 2025-05-07 12:17:15 -04:00
reverse_proxy: Elaborate on upstream defaults, scheme defaults
This commit is contained in:
parent
87445126c0
commit
7aacc28e84
1 changed files with 2 additions and 0 deletions
|
@ -143,6 +143,8 @@ Static upstream addresses can take the form of a conventional [Caddy network add
|
||||||
- `unix//var/php.sock`
|
- `unix//var/php.sock`
|
||||||
- `unix+h2c//var/grpc.sock`
|
- `unix+h2c//var/grpc.sock`
|
||||||
|
|
||||||
|
If no [`transport`](#transports) is configured, or no scheme is specified, then the request is proxied over HTTP, by default. Using `https://` as the scheme will use the [`http` transport](#the-http-transport) with [`tls`](#tls) enabled. Using `h2c://` as the scheme will use the [`http` transport](#the-http-transport) with [HTTP versions](#versions) set to allow cleartext HTTP/2 connections.
|
||||||
|
|
||||||
Note: Schemes cannot be mixed, since they modify the common transport configuration (a TLS-enabled transport cannot carry both HTTPS and plaintext HTTP). Any explicit transport configuration will not be overwritten, and omitting schemes or using other ports will not assume a particular transport.
|
Note: Schemes cannot be mixed, since they modify the common transport configuration (a TLS-enabled transport cannot carry both HTTPS and plaintext HTTP). Any explicit transport configuration will not be overwritten, and omitting schemes or using other ports will not assume a particular transport.
|
||||||
|
|
||||||
Additionally, upstream addresses cannot contain paths or query strings, as that would imply simultaneous rewriting the request while proxying, which behavior is not defined or supported. You may use the [`rewrite`](/docs/caddyfile/directives/rewrite) directive should you need this.
|
Additionally, upstream addresses cannot contain paths or query strings, as that would imply simultaneous rewriting the request while proxying, which behavior is not defined or supported. You may use the [`rewrite`](/docs/caddyfile/directives/rewrite) directive should you need this.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue