Позначка: nginx

  • Генерация .htpasswd без утилиты htpasswd в Freebsd.

    Взято с wiki.nginx.org  . printf “John:$(openssl passwd -crypt V3Ry)\n” >> .htpasswd # this example uses crypt encryption printf “Mary:$(openssl passwd -apr1 SEcRe7)\n” >> .htpasswd # this example uses apr1 (Apache MD5) encryption printf “Jane:$(openssl passwd -1 V3RySEcRe7)\n” >> .htpasswd # this example uses MD5 encryption (PASSWORD=”SEcRe7PwD”;SALT=”$(openssl rand -base64 3)”;SHA1=$(printf “$PASSWORD$SALT” | openssl dgst -binary -sha1…