Postingan

Menampilkan postingan dengan label SSL

How to Set Up SSL/TLS (HTTPS) on a VPS with Let’s Encrypt + Redirect HTTP to HTTPS

Gambar
Running your website on HTTPS is no longer optional. Modern browsers label non-HTTPS sites as “Not Secure,” search engines prefer HTTPS, and any login, checkout, or form submission should be encrypted by default. The good news: Let’s Encrypt provides free SSL/TLS certificates, and on most VPS setups you can enable HTTPS in under an hour. This guide explains step-by-step how to install a Let’s Encrypt certificate on a VPS and configure a permanent redirect from HTTP to HTTPS . It includes the two most common web servers on VPS: Nginx and Apache . 1) Prerequisites (Before You Start) Make sure you have: A domain name (example: example.com ) DNS records pointing to your VPS: A record: example.com → VPS_IP optional: A record: www.example.com → VPS_IP A working web server: Nginx or Apache installed and running Firewall allows: 80/tcp (HTTP) 443/tcp (HTTPS) Confirm your DNS is correct From your local machine, you can check: ping example.com Or: nslookup example.com Your domain should ...