Tag: nginx

How to password protect NGINX directories

TL;DR mc -e /etc/nginx/nginx.conf location / { auth_basic “Restricted”; auth_basic_user_file /home/domain//public_html/.htpasswd; } htpasswd -c /home/domain/public_html/.htpasswd username Now restart NGINX: # service nginx restart The /

Read More

If you cannot find what you are looking try another search or contact us, we’re there to help

Scroll to Top