Apache HTTP Server �汾2.2
˵�� | ʹ�ô��ı��ļ�Ϊ��֤�ṩ֧�� |
---|---|
״̬ | ����(B) |
ģ���� | authn_file_module |
Դ�ļ� | mod_authn_file.c |
������ | ���� Apache 2.1 ���Ժ�İ汾�п��� |
��ģ��Ϊ��֤ǰ��(mod_auth_digest
��mod_auth_basic
)ʹ�ô��ı��ļ������û���֤�ṩ֧�֡�mod_authn_dbm
ģ��Ҳ�ṩ���ƵĹ��ܡ�
ʹ��mod_auth_basic
��mod_auth_digest
��ʱ����ͨ����AuthBasicProvider
��AuthDigestProvider
ָ����ʹ��file
ֵ���ø�ģ�顣
˵�� | �趨һ��������֤ʹ�õ��û���/�����б�Ĵ��ı��ļ� |
---|---|
� | AuthUserFile file-path |
������ | directory, .htaccess |
������ | AuthConfig |
״̬ | ����(B) |
ģ�� | mod_authn_file |
AuthUserFile
ָ���趨һ�����ı��ļ������ƣ����а���������֤���û���/������б�File-path�Ǹ��ļ���·����������Ǿ���·��(Ҳ����˵�����������б�ܿ�ʼ��)�����������ServerRoot
�����·����
�û��ļ���ÿһ�а���һ���û��������һ��ð�ţ��ٸ�һ�����ܹ������롣����ļ��к����ظ����û�����mod_authn_file
ģ�����������ǰ������ж�������֤���û������롣
�ڶ������ļ���װ���и�����(������"src/support
"��)�������htpasswd
��������ά��������HTTP������֤�������ļ��������ֲ�ҳ���Ի�ø���ϸ��˵����
��һ����ʼ�ʻ�username
����һ�������ļ�Filename
��������ʾ�������룺
htpasswd -c Filename username
���ӻ��������ļ�Filename
�е��ʺ�username2
��
htpasswd Filename username2
ע�⣺�����ܴ���ı��ļ����dz����ģ�Ӧ��ʹ��AuthDBMUserFile
���������
���ʹ��HTTPժҪ��֤���Ͳ���ʹ��htpasswd
���ߣ���Ҫʹ��htdigest
���ߡ�ע�⣺������ͬһ���ļ���ͬʱ�������ڻ�����֤��ժҪ��֤���û����ݡ�
����ȷ��AuthUserFile
�ļ������WEB������Ŀ¼֮�⣬ǧ��Ҫ��������������Ŀ¼�У�������ܻᱻ�ͻ������ء�