mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: Several minor tweaks and fixes
This commit is contained in:
parent
a80f20b385
commit
cca0660339
7 changed files with 46 additions and 38 deletions
|
@ -46,6 +46,8 @@ Sets Caddy's configuration, overriding any previous configuration. It blocks unt
|
|||
|
||||
This endpoint supports different config formats using config adapters. The request's Content-Type header indicates the config format used in the request body. Usually, this should be `application/json` which represents Caddy's native config format. For another config format, specify the appropriate Content-Type so that the value after the forward slash / is the name of the config adapter to use. For example, when submitting a Caddyfile, use a value like `text/caddyfile`; or for JSON 5, use a value such as `application/json5`; etc.
|
||||
|
||||
If the new config is the same as the current one, no reload will occur. To force a reload, set `Cache-Control: must-revalidate` in the request headers.
|
||||
|
||||
### Examples
|
||||
|
||||
Set a new active configuration:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue