Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

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

Category: Security

Secure directory access—a privacy tweak—on an Nginx VPS—edit /etc/nginx/sites-available/default:
location /private { auth_basic \"Restricted\"; auth_basic_user_file /etc/nginx/.htpasswd; }
reload:
nginx -s reload
On Linode secures hosting—requires login

Back to All Tips