From 3bc711fd6221fd4070774b461d71ef49427356c8 Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Fri, 10 Feb 2023 02:16:58 -0700 Subject: [PATCH] options: Add note about server listener_address matching (#297) Co-authored-by: Francis Lavoie --- src/docs/markdown/caddyfile/options.md | 40 ++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/src/docs/markdown/caddyfile/options.md b/src/docs/markdown/caddyfile/options.md index adc253b..bd28d35 100644 --- a/src/docs/markdown/caddyfile/options.md +++ b/src/docs/markdown/caddyfile/options.md @@ -369,6 +369,37 @@ For example, to configure different options for the servers on ports `:80` and ` } ``` + + + + + ##### `name` A custom name to assign to this server. Usually helpful to identify a server by its name in logs and metrics. If not set, Caddy will define it dynamically using a `srvX` pattern, where `X` starts with 0 and increments based on the number of servers in the config. @@ -376,11 +407,7 @@ A custom name to assign to this server. Usually helpful to identify a server by - -For example: +To overcome this, you'll need to create an empty `:80` or `http://` site block and set this option. With that Auto-HTTPS will add its redirect routes to that server. For example: ```caddy { @@ -400,6 +427,9 @@ http:// { } ``` + + + ##### `listener_wrappers`