问题
I am using Windows 8.1 OS and I installed Wamp server ...i google and found that " it should very rarely be edited by hand. There is a special program on a *nix machine that is designed to manipulate the .htpasswd file on your behalf. "
so my question is how to Make-up username:password pair on my windows machine because I cant use that *nix on my window
my .htpasswd looks like
username:encryptedpassword
john:odn927jw3h!hcj
but to make-up encrypted password is never possible by hand so how to make password in text/plain format
回答1:
There is a htpasswd.exe
tool in the \wamp\bin\apache\apache2.4.9\bin
directory.
And here is the documentation
回答2:
now I got alternate solution
step 1- go to encrypted password generator
step 2-copy that generated encrypted password from website
step 3-create .htpasswd file in root folder under your domain
step 4-write here your username:encypted password pair
/*for eg- john:paste your encrypted password here (after colon)
john:djfj223dv98vufhhy */
来源:https://stackoverflow.com/questions/24630517/how-to-makeup-usernamepassword-pair-in-htpasswd-file-on-wamp-server-installed