Name
require
Synopsis
requireentity
names
..
.
[Within <Directory>
, or
.htaccess]
Specifies which authenticated users or
groups can access a given directory, typically in a
<Limit>
section of an access control file. A
require
line requires that all of the appropriate
Auth*
directives are specified for the directory.
entity is one of the following:
-
user
Only the named users can access this directory with the given methods. Each name is therefore a username that exists in the
AuthUserFile
(specified password file).-
group
Only users in the named groups can access this directory with the given methods. Each name is therefore a group name that is listed in the specified group file.
-
valid-user
All users listed in the
AuthUserFile
(specified password file) are allowed access upon providing a valid password.
For example, the following restricts access to a directory to a few key users:
require user jdoe msmith
Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.