1. The problem I’m having:
Okay, so, I sent a request to my Caddy api to load a new config file. I didn’t restart Caddy, as that would cause things to go down. The issue is that, if I go to the domain, it doesn’t work, but, if I restart Caddy, it works.
2. Error messages and/or full log output:
There are no errors.
3. Caddy version:
v2.6.4
4. How I installed and ran Caddy:
a. System environment:
Ubuntu 20.04 - not from APT.
b. Command:
caddy run --config caddy.json
d. My complete Caddy config:
This is the Caddy config I post to the server.
{
"apps": {
"http": {
"servers": {
"id": {
"listen": [
":443"
],
"routes": [
{
"match": [
{
"host": [
"830008x.com"
]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "127.0.0.1:3000"
}
]
}
]
}
]
}
],
"terminal": true
},
{
"match": [
{
"host": [
"timeout",
"idle",
"5s"
]
}
],
"terminal": true
}
]
}
}
}
}
}