mirror of
https://github.com/caddyserver/website.git
synced 2025-04-23 05:26:16 -04:00
caddyfile: Clarify default port
This commit is contained in:
parent
a1ddadf798
commit
31397e9781
1 changed files with 1 additions and 1 deletions
|
@ -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>.
|
<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>
|
</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`.
|
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`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue