Cannot consistently access domain through browser

1. The problem I’m having:

When navigating to “https://plasticut.app” I get the following error in the browser tab:

This site can’t provide a secure connection

plasticut.app sent an invalid response.

ERR_SSL_PROTOCOL_ERROR

Navigating to http://plasticut.app will successfully redirect the browser and renders the page.


using

curl https://plasticut.app 

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 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | apt-key add - && \
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | 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:

plasticut.app

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.