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

Set up Nginx HSTS—a HTTP Strict Transport Security—on a Fedora VPS—install with
dnf install nginx -y
configure /etc/nginx/conf d/site conf:
server { listen 443 ssl; add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always; }
Reload with
nginx -s reload
open port:
firewall-cmd --add-service=https
On DigitalOcean test with
curl -I https://ip
—expect HSTS header Ensures uptime—secures phpMyAdmin in VPS hosting with forced HTTPS

Back to All Tips