简体   繁体   English

HTTP基本身份验证和基于.htpasswd的身份验证之间的关系是什么?

[英]What is the realtionship between HTTP Basic Auth and .htpasswd based Authentication?

There are several approachs of the HTTP authentication: Basic Authentication , Digest Access Authentication , NTLM HTTP Authentication (any other ones)? HTTP身份验证有几种方法: Basic AuthenticationDigest Access AuthenticationNTLM HTTP Authentication (其他方式)?

On the other side there is a .htaccess & .htpasswd based authenticazion on Apache web servers and an analog variant with the .htpasswd on nginx. 另一方面,Apache Web服务器上有一个基于.htaccess.htpasswd的身份验证,而nginx上有一个带有.htpasswd的模拟变体。

I want to understand: What is the .htpasswd based authentication on Apache and nginx actually. 我想了解:什么是基于Apache和Nginx的.htpasswd身份验证。 What is the realtionship between it and the HTTP Basic Authentication? 它与HTTP基本身份验证之间的关系是什么? Is it something like "implementation" of the concept? 它有点像概念的“实现”吗? If yes, whuch other implementation are there? 如果是,还有其他实现方法吗?

The Basic HTTP Authentication uses a simle user:password schema. 基本HTTP身份验证使用一个类似的user:password模式。

There are only two standard HTTP authentication methods: Basic access authentication (part of HTTP/1.0 spec, RFC1945 ) and Digest access authentication (latest according to RFC2617 ). 只有两种标准的HTTP身份验证方法: 基本访问身份验证 (HTTP / 1.0规范的一部分, RFC1945 )和摘要访问身份验证 (最新根据RFC2617 )。

.htpasswd is just a common name for a file of Apache 's flat-file format used to store user credentials. .htpasswd只是用于存储用户凭证的Apache平面文件格式文件的通用名称。 It is managed by either htpasswd (basic) or htdigest (digest) command-line utilities. 它由htpasswd (基本)或htdigest (摘要)命令行实用程序管理。 nginx just doesn't reinvent the wheel and uses Apache 's established format. nginx只是没有重新发明轮子,而是使用Apache的既定格式。 For example, on Debian there's apache2-utils with the two aforementioned utilities (and some others), so you can install utilities separately from the server. 例如,在Debian上有apache2-utils和上面提到的两个实用程序(以及其他一些实用程序),因此您可以与服务器分开安装实用程序。

.htaccess is just Apache's ad hoc per-directory way override configuration. .htaccess只是Apache的临时按目录方式覆盖配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM