From 31397e97815e36b1d340b90aeec77354e993f3c6 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 12 Mar 2022 20:48:47 -0700 Subject: [PATCH] caddyfile: Clarify default port --- src/docs/markdown/caddyfile/concepts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/markdown/caddyfile/concepts.md b/src/docs/markdown/caddyfile/concepts.md index d5563db..e599b1a 100644 --- a/src/docs/markdown/caddyfile/concepts.md +++ b/src/docs/markdown/caddyfile/concepts.md @@ -174,7 +174,7 @@ These are examples of valid addresses: Automatic HTTPS is enabled if your site's address contains a hostname or IP address. This behavior is purely implicit, however, so it never overrides any explicit configuration. For example, if the site's address is http://example.com, auto-HTTPS will not activate because the scheme is explicitly http://. -From the address, Caddy can potentially infer the scheme, host, port, and path of your site. +From the address, Caddy can potentially infer the scheme, host, port, and path of your site. If the address is without a port, the Caddyfile will choose the port matching the scheme if specified, or the default port of 443 will be assumed. If you specify a hostname, only requests with a matching Host header will be honored. In other words, if the site address is `localhost`, then Caddy will not match requests to `127.0.0.1`.