Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

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

Category: Security

Set directory protection—a access tweak—on an Apache VPS—edit /etc/httpd/conf/httpd conf:
\nAuthType Basic\nAuthName \"Restricted\"\nAuthUserFile /etc/httpd/.htpasswd\nRequire valid-user\n
restart:
systemctl restart httpd
On DigitalOcean secures hosting—password-protects directories

Back to All Tips