MaxClients

Name

MaxClients -- Limits the number of users that can connect

Synopsis

MaxClients [ MaxClients number|none [message]]

Default

MaxClients none

Context

server config, <Anonymous>, <VirtualHost>, <Global>

Module

mod_auth

Compatibility

0.99.0 and later

Description

The MaxClients directive configures the maximum number of authenticated clients which may be logged into a server or anonymous account. Once this limit is reached, additional clients attempting to authenticate will be disconnected. The special value none may be supplied which removes all maximum connection limits from the applicable configuration context. Additionally, an optional message argument may be used which will be displayed to a client attempting to exceed the maximum value; immediately before disconnection. The message argument is parsed for the magic string "%m", which is replaced with the configured maximum value. If message is not supplied, a system-wide default message is used. Example: MaxClients 5 "Sorry, the maximum number of allowed users are already connected (%m)" Results in: 530 Sorry, the maximum number of allowed users are already connected (5)

See also

Examples

Рейтинг@Mail.ru