mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 21:16:15 -04:00
docs: Add Caddyfile syntax highlighting (#41)
This commit is contained in:
parent
75fcfc21bb
commit
e0f5ee1bb9
34 changed files with 215 additions and 179 deletions
|
@ -11,7 +11,7 @@ Note that binding sites inconsistently may result in unintended consequences. Fo
|
|||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
bind <hosts...>
|
||||
```
|
||||
|
||||
|
@ -22,12 +22,12 @@ bind <hosts...>
|
|||
|
||||
To make a socket accessible only on the current machine, bind to the loopback interface (localhost):
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
bind 127.0.0.1
|
||||
```
|
||||
|
||||
To include IPv6:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
bind 127.0.0.1 ::1
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue