查看完整版本: 如何在Ubuntu下 安裝跟使用 htpasswd


ppstream 2013-8-20 14:41

如何在Ubuntu下 安裝跟使用 htpasswd

If you're trying to use nginx basic auth on a freshly installed Ubuntu server you might find out that you're missing this very important tool, htpasswd. If you're having trouble locating it, don't worry, here is the command you need to run in order to install it.

# [color=#0000ff]apt-get install apache2-utils[/color]

If you're not logged in as root add sudo in front of the command and you're done.
Here is an example command for using htpasswd for nginx:

# [color=#0000ff]htpasswd -c -d /path/to/file username[/color]
頁: [1]
查看完整版本: 如何在Ubuntu下 安裝跟使用 htpasswd