How to create a htpasswd file

I’ve starting working with nginx has a reverse proxy for a unraid server I have. I’ve done a little work with apache but never nginx or reverse proxies before. Part of the setup is to secure the landing page in the nginx config, to do that you need to create a .htpasswd file which includes the username and encrypted password for your users. Last night I found a nice web site that helps you create the file, there’s not much to it but it’s better than using a linux command line tool to create the hashed values.

htpasswd generator

If you’re using windows to edit the config files for nginx I recommend you use notepad++ and make sure you create and save the files from within the app not through windows explorer. Windows explorer doesn’t like to create some of the files that are needed on linux.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.