Enabling https results in connection refused


The setup of my AWS server with SnowPlow mini succeeds. I can also track events from http pages. But not from https.

To fix that I configured an A record at my DNS provider, let’s say: snowplow.example.com. That succeeds, I can for example login with SSH via that domain.

When I enter snowplow.example.com in the domain field at the control plane the trouble starts. I get ERR_CONNECTION_REFUSED errors.

When I SSH I can change the Caddyfile back to the IP address and then I can login again.

Any directions on what goes wrong?