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 Apache ModSecurity—a web application firewall—on a Debian VPS—install with
apt install apache2 libapache2-mod-security2 -y
enable:
a2enmod security2
configure /etc/modsecurity/modsecurity conf:
SecRuleEngine On
Start with
systemctl start apache2
open port:
ufw allow 80
On Linode test with
curl http://ip
—blocks malicious requests Ensures uptime—secures phpMyAdmin in VPS hosting with WAF protection

Back to All Tips