caddyfile: Clarify default port

This commit is contained in:
Matthew Holt 2022-03-12 20:48:47 -07:00
parent a1ddadf798
commit 31397e9781
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -174,7 +174,7 @@ These are examples of valid addresses:
<a href="/docs/automatic-https">Automatic HTTPS</a> 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 <code>http://example.com</code>, auto-HTTPS will not activate because the scheme is explicitly <code>http://</code>.
</aside>
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`.