mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 14:06:17 -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 @@ This directive implies that a matched request is to be rejected. It is ordered v
|
|||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
redir [<matcher>] <to> [<code>]
|
||||
```
|
||||
|
||||
|
@ -28,18 +28,18 @@ redir [<matcher>] <to> [<code>]
|
|||
|
||||
Redirect all requests to `https://example.com`:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
redir https://example.com
|
||||
```
|
||||
|
||||
Same, but preserve the existing URI:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
redir https://example.com{uri}
|
||||
```
|
||||
|
||||
Same, but permanent:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
redir https://example.com{uri} permanent
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue