SSL Problems HTTPS


I read the docs but I think there is something I misunderstood or I didn't see.

I created a subdomain on my Ionos page where i have an SSL certificate. I've configured the DNS settings (IP4v) on my EC2 server to Ionos, but every time I try to access the page, I receive an error message in Safari stating, 'Safari can't open the page...' because the connection was unexpectedly lost. However, if I access the page with ':3000' appended to the end of the URL, it opens without any issues but HTTP. I also attempted to access the static IP address of my EC2 instance over HTTPS which don't have a SSL Certificate, and it opened perfectly fine.

I hope there is something I missed or a solution for this.