How to configure let's encrypt ssl certificate on ubuntu 24.04 apache

I am trying to configure let’s encrypt ssl certificate on ubuntu 24.04 apache on my website

http://shahichai.pk

by following this article

website was working fine on http before ssl configuration but after ssl configuration it is not working on http and https both still accessible via IP address.

I think some configuration is missing or misconfigured.