Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Install SSL on an Ubuntu VPS with Certbot for secure websites—install with
apt update && apt install python3-certbot-nginx
then run
certbot --nginx
Enter your domain (e g example com) select \"Redirect HTTP to HTTPS\" and Certbot auto-configures Nginx with a Let’s Encrypt cert Open ports with
ufw allow 80 && ufw allow 443
and verify with
openssl s_client -connect example.com:443
—expect \"Certificate chain\" output Set auto-renewal with a cron job:
echo \"0 0 * * * root certbot renew --quiet\" >> /etc/crontab
On DigitalOcean this secures phpMyAdmin and FTP transfers maintaining uptime with zero-downtime renewals every 90 days

Back to All Tips