mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
49 lines
No EOL
604 B
Text
49 lines
No EOL
604 B
Text
:80
|
|
|
|
@test {
|
|
not {
|
|
header Abc "123"
|
|
header Bcd "123"
|
|
}
|
|
}
|
|
respond @test 403
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":80"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"not": [
|
|
{
|
|
"header": {
|
|
"Abc": [
|
|
"123"
|
|
],
|
|
"Bcd": [
|
|
"123"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"handle": [
|
|
{
|
|
"handler": "static_response",
|
|
"status_code": 403
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |