mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 14:06:17 -04:00
2.5.2 docs (#247)
* docs: Changes for v2.5.2 release * docs: Remove -X POST Curl automatically uses POST for -d and --data-binary. I intentionally left it in to be explicit to learners, but maybe best practices are better. * api: /adapt endpoint and Etag usage * api: Minor tweaks * Alright fine * Clarify Etag usage * CEL embedded matchers * Oops * Lots more adjustments Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
parent
522d1961d1
commit
7819a84e59
30 changed files with 529 additions and 164 deletions
|
@ -4,11 +4,11 @@ title: bind (Caddyfile directive)
|
|||
|
||||
# bind
|
||||
|
||||
bind overrides the interface to which the server's socket should bind. Normally, the listener binds to the empty (wildcard) interface. However, you may force the listener to bind to another hostname or IP instead. (This directive accepts only a host, not a port.)
|
||||
Overrides the interface to which the server's socket should bind. Normally, the listener binds to the empty (wildcard) interface. However, you may force the listener to bind to another hostname or IP instead. (This directive accepts only a host, not a port.)
|
||||
|
||||
Note that binding sites inconsistently may result in unintended consequences. For example, if two sites on the same port resolve to 127.0.0.1 and only one of those sites is configured with `bind 127.0.0.1`, then only one site will be accessible since the other will bind to the port without a specific host; the OS will choose the more specific matching socket. (Virtual hosts are not shared across different listeners.)
|
||||
Note that binding sites inconsistently may result in unintended consequences. For example, if two sites on the same port resolve to `127.0.0.1` and only one of those sites is configured with `bind 127.0.0.1`, then only one site will be accessible since the other will bind to the port without a specific host; the OS will choose the more specific matching socket. (Virtual hosts are not shared across different listeners.)
|
||||
|
||||
bind also accepts an optional network name: `<network>/<host>`.
|
||||
`bind` accepts [network addresses](/docs/conventions#network-addresses), but may not include a port.
|
||||
|
||||
|
||||
## Syntax
|
||||
|
@ -17,7 +17,7 @@ bind also accepts an optional network name: `<network>/<host>`.
|
|||
bind <hosts...>
|
||||
```
|
||||
|
||||
- **<hosts...>** is the list of host interfaces to bind which to bind the listener.
|
||||
- **<hosts...>** is the list of host interfaces to bind which to bind the listener.
|
||||
|
||||
|
||||
## Examples
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue