How to Redirect IP request to domain name

Hey…!
I’ve a Server on the AWS platform and whenever I enter my ip address my website loads on that ip address
Can anyone tell me how to fix this issue and also secure that server too

Does that server also load your site fine via HTTPS?

When I Enter the IP Address of The Website It doesnt redirect the User to Domain name with SSL instead it Loads the Site with Not Secure Message

You shouldn’t test with the IP address. Pause Cloudflare and make sure it loads fine on HTTPS without Cloudflare before proceeding with Cloudflare.