mirror of
https://github.com/caddyserver/website.git
synced 2025-04-23 13:36:16 -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
|
@ -10,7 +10,7 @@ The `handle` directive is kind of similar to the `location` directive from nginx
|
|||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
handle [<matcher>] {
|
||||
<directives...>
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ If you prefer crafting HTTP handler logic in a more inheritence-based way like n
|
|||
|
||||
Handle requests in `/foo/` by the static file server, and send all other requests to the reverse proxy:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
handle /foo/* {
|
||||
file_server
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue