mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-31 15:08:42 -04:00
Updated v2: Config from Scratch (markdown)
parent
de96b8bacc
commit
58e757ac37
@ -31,10 +31,10 @@ This is a static file server out of the the `/var/www` directory:
|
||||
"listen": [":80"],
|
||||
"routes": [
|
||||
{
|
||||
"respond": {
|
||||
"responder": "file_server",
|
||||
"handle": [{
|
||||
"handler": "file_server",
|
||||
"root": "/var/www"
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -56,10 +56,10 @@ And this is the same, but with automatic HTTPS (notice that we now serve on the
|
||||
"routes": [
|
||||
{
|
||||
"match": [{"host": ["example.com"]}],
|
||||
"respond": {
|
||||
"responder": "file_server",
|
||||
"handle": [{
|
||||
"handler": "file_server",
|
||||
"root": "/var/www"
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user