Назад | Перейти на главную страницу

Apache / 2.4.18 в Ubuntu 16.04 - недопустимая команда AuthName

Я использую Ubuntu 16.04.

Distributor ID: Ubuntu
Description:    Ubuntu 16.04 LTS
Release:        16.04
Codename:       xenial

Я использую версию Apache HTTP 2.4.18.

Server version: Apache/2.4.18 (Ubuntu)
Server built:   2016-07-14T12:32:26

На веб-сервер загружаются следующие модули:

Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
mpm_prefork_module (shared)
authz_core_module (shared)
authz_user_module (shared)
authz_host_module (shared)
access_compat_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
include_module (shared)
env_module (shared)
ext_filter_module (shared)
mime_magic_module (shared)
expires_module (shared)
headers_module (shared)
usertrack_module (shared)
setenvif_module (shared)
mime_module (shared)
vhost_alias_module (shared)
negotiation_module (shared)
dir_module (shared)
actions_module (shared)
alias_module (shared)
rewrite_module (shared)
info_module (shared)
status_module (shared)

Я загрузил authn_core модуль, который обеспечивает функциональность, которую я собираюсь описать ниже:

a2enmod authn_core
Module authn_core already enabled

Однако возвращается следующая ошибка:

Invalid command 'AuthName', perhaps misspelled or defined by a module not included in the server configuration

Такая же ошибка возвращается для AuthName и директивы, относящиеся к аутентификации.

Что я делаю неправильно и как это исправить? Этот материал аутентификации устарел или реализован по-другому в Apache HTTP 2.4?