Handshake error using www

Hello, I get handshake errors and the site fails to load when trying to access my Website via www.matrixebiz.cc, http://matrixebiz.cc is fine. In my caddyfile I have;
matrixebiz.cc:80 {
root * /www/
file_server
}
matrixebiz.cc:443 {
root * /www/
file_server
}

Should I change this to *.matrixebiz.cc ?

Just add another site block:

www.matrixebiz.cc:80, www.matrixebiz.cc:443 {
    redir * https://matrixebiz.cc{uri}
}
1 Like

Okay, thanks I’ll give it a go.

You can also drop the port numbers :80 and :443:

matrixebiz.cc {
    root * /www/
    file_server
}

www.matrixebiz.cc {
    redir https://matrixebiz.cc{uri}
}

That’s all you need.

When I have my caddyfile with just the single domain name I get constant scrolling of the bellow;

So I put in both ports specifically like above and that doesn’t happen.

Can you provide more details so we can reproduce the same errors?

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