Cannot consistently access domain through browser

1. The problem I’m having:

When navigating to “” I get the following error in the browser tab:

This site can’t provide a secure connection sent an invalid response.


Navigating to will successfully redirect the browser and renders the page.



returns “Hello, privacy!”

2. Error messages and/or full log output:

no entries

3. Caddy version:

caddy -v

v2.7.5 h1:HoysvZkLcN2xJExEepaFHK92Qgs7xAiCFydN5x5Hs6Q=

4. How I installed and ran Caddy:

a. System environment:

Ubuntu 22.04

b. Command:

apt install -y debian-keyring debian-archive-keyring apt-transport-https && \
curl -1sLf '' | apt-key add - && \
curl -1sLf '' | tee -a /etc/apt/sources.list.d/caddy-stable.list && \
apt update && \
apt install caddy && \
nano Caddyfile

caddy run

c. Service/unit/compose file:

Default, have not made any changes.

d. My complete Caddy config:

respond "Hello, privacy!"

5. Links to relevant resources:

Have been following the HTTPS quick-start

Solved Using:

sudo ufw allow proto tcp from any to any port 80,443

If this approach is not suitable for production. Please advise.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.