[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] limiting connections



le 3.10.2001 20:25, Carrie Bartkowiak à ravencarrie@xxxxxxxx a écrit :

> I was just downloading all of the updates/patches to my home machine for
> archival purposes, and the Sun site would only allow me to have 2 downloads
> going at once.
> How can I do the same thing on my servers for both FTP and HTTP? Sometimes I
> see a person in netstat with 20 connections to a particular site - no idea
> why, but that bugs me. "Greedy" comes to mind. I'd like to limit that if I
> can.


Hi Carrie,
If an option should work this one should:

MaxClients

Syntax: MaxClients number|none [message]
Default: none
Context: server config, <Anonymous>, <VirtualHost>, <Global>
Module: mod_core
Compatibility: 0.99.0 and later

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)


To be added into your proftpd.conf file