How to Install the Caddy Web Server on a VPS
Caddy is a web server with automatic HTTPS (Let’s Encrypt) and no Certbot. Great for simple sites and reverse proxies on a VPS.
Steps
Add the official repo and install Caddy:
Caddy is a web server with automatic HTTPS (Let’s Encrypt) and no Certbot. Great for simple sites and reverse proxies on a VPS.
Add the official repo and install Caddy:
Without HTTPS browsers flag your site as not secure. In cPanel the fastest path is AutoSSL (Let’s Encrypt); you can also paste a certificate issued elsewhere.
Log into cPanel and open SSL/TLS Status (or AutoSSL):
# Panel: cPanel → Security → SSL/TLS StatusMake sure DNS A/AAAA records point at this server before issuing:
Certbot requests Let’s Encrypt certificates and wires up HTTPS. You need a domain pointing at the VPS IP and ports 80/443 open.
Install Certbot with your web server plugin (Ubuntu, Nginx example):
sudo apt updatesudo apt install -y certbot python3-certbot-nginxFor Apache, install the matching plugin:
HTTPS is required for trust and SEO. Certbot + Let’s Encrypt automates free certificates on Apache.
Point the domain (A/AAAA) to the VPS IP and open 80/443.
sudo apt updatesudo apt install -y certbot python3-certbot-apacheObtain and install the certificate for your VirtualHost.
Let’s Encrypt provides free SSL certificates, making it easy to secure your website with HTTPS. This guide shows you how to install a Let’s Encrypt SSL certificate on your server using Certbot.