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
|
@ -9,7 +9,7 @@ A static file server. It works by appending the request's URI path to the [site'
|
|||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
file_server [<matcher>] [browse] {
|
||||
root <path>
|
||||
hide <files...>
|
||||
|
@ -29,18 +29,18 @@ file_server [<matcher>] [browse] {
|
|||
|
||||
A static file server out of the current directory:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
file_server
|
||||
```
|
||||
|
||||
With file listings enabled:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
file_server browse
|
||||
```
|
||||
|
||||
Only serve static files out of the `/static` folder:
|
||||
|
||||
```
|
||||
```caddy-d
|
||||
file_server /static/*
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue