<-
Apache > HTTP Server > �ĵ� > �汾2.2 > ģ��
���� ��л | �������� | ��ƪ���ߣ��𲽹� | ��ҳ�����£�2006��1��24�� | ��ȡ���°汾

Apacheģ�� mod_authn_file

˵��ʹ�ô��ı��ļ�Ϊ��֤�ṩ֧��
״̬����(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ֵ���ø�ģ�顣

top

AuthUserFile ָ��

˵���趨һ��������֤ʹ�õ��û���/�����б�Ĵ��ı��ļ�
�﷨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������Ŀ¼֮�⣬ǧ��Ҫ��������������Ŀ¼�У�������ܻᱻ�ͻ������ء�