how to makeup username:password pair in .htpasswd file on wamp server installed on windows OS

我的梦境 提交于 2019-12-13 03:01:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!