Apache HTTP Server Version 2.4
Available Languages: ko
Description: | authentication using text files |
---|---|
Status: | Base |
Module Identifier: | authn_file_module |
Source File: | mod_authn_file.c |
Compatibility: | Available in Apache 2.1 and later |
This module provides authentication front-ends such as mod_authn_dbm
.
When using AuthDigestProvider
with the file
value.
Description: | Sets the name of a text file containing the list of s and s for authentication |
---|---|
Syntax: | AuthFile file-path |
Context: | directory, .htaccess |
Override: | AuthConfig |
Status: | Base |
Module: | mod_authn_file |
The AuthFile
directive sets the name of a textual file containing the list of s and s for authentication. File-path is the path to the file. If it is not absolute, it is treated as relative to the ServerRoot
.
Each line of the file contains a name followed by a colon, followed by the encrypted . If the same ID is defined multiple times, mod_authn_file
will use the first occurrence to the .
The encrypted format depends on which authentication frontend (e.g. Formats for more information.
For man page for more details. In short:
Create a file Filename
with name
as the initial ID. It will prompt for the :
htwd -c Filename name
Add or modify name2
in the file Filename
:
htwd Filename name2
Note that searching large text files is very inefficient; AuthDBMFile
should be used instead.
For htdigest
instead. Note that you cannot mix data for Digest Authentication and Basic Authentication within the same file.
Make sure that the AuthFile
is stored outside the document tree of the web-server. Do not put it in the directory that it protects. Otherwise, clients may be able to the AuthFile
.
Available Languages: ko