docs: A few updates

This commit is contained in:
Matthew Holt 2020-04-27 18:19:08 -06:00
parent 7c550dc224
commit 1837e55742
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
4 changed files with 27 additions and 7 deletions

View file

@ -228,9 +228,9 @@ Because this command uses the API, the admin endpoint must not be disabled.
### `caddy reverse-proxy`
<pre><code class="cmd bash">caddy reverse-proxy
--from &lt;addr&gt;
[--from &lt;addr&gt;]
--to &lt;addr&gt;
--change-host-header</code></pre>
[--change-host-header]</code></pre>
Spins up a simple but production-ready reverse proxy.
@ -240,9 +240,9 @@ Spins up a simple but production-ready reverse proxy.
`--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.
Both `--from` and `--to` parameters can be URLs, as scheme and domain name 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.
This command disables the admin API so it is easier to run multiple instances on a local development machine.
### `caddy run`