Incus 6.10.1
incus launch images:ubuntu/24.04 caddy
incus config device add caddy caddy-port-80 proxy listen=tcp:0.0.0.0:80 connect=tcp:127.0.0.1:80
incus config device add caddy caddy-port-443 proxy listen=tcp:0.0.0.0:443 connect=tcp:127.0.0.1:443
Caddy config
{
"apps": {
"http": {
"servers": {
"example": {
"listen": [
"ubuntu.caddy.example.com:80"
],
"routes": [
{
"handle": [
{
"handler": "static_response",
"body": "Hello, world!"
}
]
}
]
}
}
}
}
}
Caddy config error
{"error":"loading config: loading new config: http app module: start: listening on ubuntu.caddy.example.com:80: listen tcp 11.22.33.444:80: bind: cannot assign requested address"}
When I don’t bind any domain, it works.
"listen": [
":80"
],
11.22.33.44 is Incus host IP address. Domain DNS points to 11.22.33.44
Any ideas, please?