Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

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

Category: Security

Add secure headers—a web security—on a Tomcat VPS—edit conf/web xml:
httpHeaderSecurityorg.apache.catalina.filters.HttpHeaderSecurityFilterhstsMaxAgeSeconds31536000
restart:
systemctl restart tomcat
On Hetzner secures hosting—enforces HSTS

Back to All Tips