mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: Update for beta 15
This commit is contained in:
parent
44f6195f31
commit
aea9c986d1
8 changed files with 226 additions and 13 deletions
|
@ -200,7 +200,8 @@ Gives the running Caddy instance a new configuration. This has the same effect a
|
|||
|
||||
<pre><code class="cmd bash">caddy reverse-proxy
|
||||
--from <addr>
|
||||
--to <addr></code></pre>
|
||||
--to <addr>
|
||||
--change-host-header</code></pre>
|
||||
|
||||
Spins up a simple but production-ready reverse proxy.
|
||||
|
||||
|
@ -208,7 +209,9 @@ Spins up a simple but production-ready reverse proxy.
|
|||
|
||||
`--to` is the address to proxy to.
|
||||
|
||||
Both from and to parameters can be URLs, as scheme, domain name, and URI rewrite information will be inferred from the provided URL. Or they can be a simple network address and not a complete URL.
|
||||
`--change-host-header` will cause Caddy to change the Host header from the incoming value to the address of the upstream.
|
||||
|
||||
Both `--from` and `--to` parameters can be URLs, as scheme, domain name, and URI rewrite information will be inferred from the provided URL (paths and query strings ignored). Or they can be a simple network address and not a complete URL.
|
||||
|
||||
This command disables the admin API, making it easier to run multiple instances on a local development machine.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue