mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-29 15:13:49 +03:00
78 lines
1 KiB
Text
78 lines
1 KiB
Text
|
:80
|
||
|
|
||
|
push * /foo.txt
|
||
|
|
||
|
push {
|
||
|
GET /foo.txt
|
||
|
}
|
||
|
|
||
|
push {
|
||
|
GET /foo.txt
|
||
|
HEAD /foo.txt
|
||
|
}
|
||
|
|
||
|
push {
|
||
|
headers {
|
||
|
Foo bar
|
||
|
}
|
||
|
}
|
||
|
----------
|
||
|
{
|
||
|
"apps": {
|
||
|
"http": {
|
||
|
"servers": {
|
||
|
"srv0": {
|
||
|
"listen": [
|
||
|
":80"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"handle": [
|
||
|
{
|
||
|
"handler": "push",
|
||
|
"resources": [
|
||
|
{
|
||
|
"target": "/foo.txt"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"handler": "push",
|
||
|
"resources": [
|
||
|
{
|
||
|
"method": "GET",
|
||
|
"target": "/foo.txt"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"handler": "push",
|
||
|
"resources": [
|
||
|
{
|
||
|
"method": "GET",
|
||
|
"target": "/foo.txt"
|
||
|
},
|
||
|
{
|
||
|
"method": "HEAD",
|
||
|
"target": "/foo.txt"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"handler": "push",
|
||
|
"headers": {
|
||
|
"set": {
|
||
|
"Foo": [
|
||
|
"bar"
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|