We can see from reading others here that if your getting a 521 on SSL requests but non SSL requests work fine it usually means two things:
- Your web server is not set-up to receive SSL connections.
- Your firewall is blocking connections over SSL.
You can read more about Digitalocean Users on this topic:
We can also see here these solutions are in the resolution section for 521.