mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-03 22:34:12 +08:00
78 lines
1.0 KiB
Plaintext
78 lines
1.0 KiB
Plaintext
: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"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |