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

Allow HTTPS traffic with UFW on an Ubuntu VPS—install with
apt install ufw
then run
ufw allow 443/tcp
to open port 443 Add HTTP too with
ufw allow 80/tcp
for redirects set defaults with
ufw default deny incoming
and enable with
ufw enable
Verify with
ufw status
—expect \"443/tcp ALLOW Anywhere\" Install Certbot for SSL with
apt install python3-certbot-apache
and run
certbot --apache
to secure your site On DigitalOcean this protects phpMyAdmin at https://ip/phpmyadmin—test with
curl -I https://ip
expecting a 200 OK response ensuring uptime and security for web hosting

Back to All Tips