Hello there, I’m setting up my website again step by step on a new droplet. On earlier droplet I had added nginx certificate from let’s encrypt to make it secure and added a redirection to https when site was hit on http.
Now on new droplet first of all I’ve installed nginx from official NGINX repository instead of Debian or Ubuntu repositories to get the latest version. Because of this from my understanding I only have to add server block in /etc/nginx/conf.d/*.conf and there won’t be /etc/nginx/sites-enabled/*;.
As I’m yet to setup certificate on this new droplet I was expecting I should be able to visit my website with http://khottotalfitness.com/, but it is still redirecting to https://khottotalfitness.com/. Can anybody please explain why this is happening?
Note: I can visit my website with IP address.
Is it because of certificate I had created earlier? What can I do in this case?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.