Two domains, but one of them returns error 525 - SSL handshake failed

I have two sub domains in cloudflare:

  • doapp.yachtingsbest.com points to 138.197.204.120
  • justwork.swiftharbour.com points to 138.197.204.120

They both point to the same IP, but justwork.sw… returns error 525 - SSL handshake failed (https://i.imgur.com/jtPLRdn.png)

I can’t figure out why, I checked everything nothing worked, I would appreciate some help.

Thanks.

You dont have a proper SSL setup on your server. Your port 443 does not serve HTTPS but HTTP. Reconfigure that and make sure you have a valid certificate and you should be good to go.

Any links to set it up properly, I’ve tried couple of ways it didn’t work.

Also why does it work for doapp.yachtingsbest.com it’s the exact same server as justwork.swiftharbour.com they both point to the same server, can you explain?

That really depends on your server and would be beyond the scope of the forum here. I would suggest you check out StackExchange for that.

Bottom line, you need a valid SSL certificate on your server.