← Back

Nginx htpasswd Generator

Generate HTTP Basic Auth password file for Nginx access control
No users yet, add one above
htpasswd File Content
Usage:
1. Save the generated file as /etc/nginx/.htpasswd
2. Add to Nginx config:
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
3. Reload Nginx:nginx -s reload