2020-11-25 07:36:58 +08:00
|
|
|
http://localhost:2020 {
|
|
|
|
log
|
2022-09-16 00:05:36 +08:00
|
|
|
skip_log /first-hidden*
|
|
|
|
skip_log /second-hidden*
|
2020-11-25 09:04:37 +08:00
|
|
|
respond 200
|
2020-11-25 07:36:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
:2020 {
|
|
|
|
respond 418
|
|
|
|
}
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
|
|
|
"listen": [
|
|
|
|
":2020"
|
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"localhost"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "subroute",
|
|
|
|
"routes": [
|
2022-09-16 00:05:36 +08:00
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "vars",
|
|
|
|
"skip_log": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"path": [
|
|
|
|
"/second-hidden*"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "vars",
|
|
|
|
"skip_log": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"path": [
|
|
|
|
"/first-hidden*"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-11-25 07:36:58 +08:00
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
2020-11-25 09:04:37 +08:00
|
|
|
"handler": "static_response",
|
|
|
|
"status_code": 200
|
2020-11-25 07:36:58 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "subroute",
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "static_response",
|
|
|
|
"status_code": 418
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"automatic_https": {
|
|
|
|
"skip": [
|
|
|
|
"localhost"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"logs": {
|
|
|
|
"logger_names": {
|
2023-10-17 13:57:03 +08:00
|
|
|
"localhost": ""
|
2020-11-25 07:36:58 +08:00
|
|
|
},
|
|
|
|
"skip_unmapped_hosts": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|