修改 homeland-docker 的文件 etc/caddy/Caddyfile,把 第一行 修改一下可以解决
- {$domain}
+ {$domain}, www.{$domain}
我想 www 访问可是不行呀 homeland_caddy | {"level":"info","ts":1618226593.5064054,"logger":"tls","msg":"cleaned up storage units"} homeland_caddy | {"level":"info","ts":1618312993.449576,"logger":"tls","msg":"cleaned up storage units"} homeland_caddy | {"level":"error","ts":1618363052.231146,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"} homeland_caddy | {"level":"error","ts":1618363052.2336895,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"} homeland_caddy | {"level":"error","ts":1618363052.2387388,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"} homeland_caddy | {"level":"error","ts":1618363052.2412224,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"} homeland_caddy | {"level":"error","ts":1618363052.2569761,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"} homeland_caddy | {"level":"info","ts":1618399393.4424648,"logger":"tls","msg":"cleaned up storage units"} homeland_caddy | {"level":"info","ts":1618442594.0862756,"logger":"tls.cache.maintenance","msg":"advancing OCSP staple","identifiers":["kuanshu.net"],"from":1618743600,"to":1619002800} homeland_caddy | {"level":"info","ts":1618485793.44172,"logger":"tls","msg":"cleaned up storage units"} homeland_caddy | {"level":"error","ts":1618535959.221177,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"}