Configuration MaxClients sur Apache

Bonjour,

Nous faisons tourner un serveur antivirus Trend tourant sous Apache pour les connexions clients en vue par exemple des mises à jour.
J’aimerai limiter le nombre de ses connexions.

Voici la partie interessante du fichier de config actuel :


#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 



# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 8080

J’ai tenté de rajouter, tout simplement, la directive “MaxClients” ici :

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
<IfModule mpm_winnt.c>
MaxClients 5
ThreadsPerChild 250
MaxRequestsPerChild  0
</IfModule>

Mais cela ne fonctionne pas “Invalid command ‘MaxClients’, perhaps mis-spelled or defined by a module not included in the server configuration”.

Quel module faut il alors utiliser :stuck_out_tongue: ?

Merci d’avance

Rien à voir avec Windows lui-même ; je déplace
Windows [:fleche] Internet Général
:jap:

Pas de problème :stuck_out_tongue:
En espérant que les gens passent aussi par là