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 @@ Specifically, this directive sets the `{http.vars.root}` placeholder. It is mutu
|
|||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
root [<matcher>] <path>
|
||||
```
|
||||
|
||||
|
@ -23,7 +23,7 @@ Note that a matcher token is usually required since the first argument is a path
|
|||
|
||||
Set the site root to `/home/user/public_html` for all requests:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
root * /home/user/public_html
|
||||
```
|
||||
|
||||
|
@ -31,7 +31,7 @@ root * /home/user/public_html
|
|||
|
||||
Set the site root to `public_html` (relative to current working directory) for all requests:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
root public_html
|
||||
```
|
||||
|
||||
|
@ -39,6 +39,6 @@ root public_html
|
|||
|
||||
Set the site root only for requests in `/foo`:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
root /foo/* /home/user/public_html/foo
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue