Limit the number of connections on a Apache web server

This is a discussion on Limit the number of connections on a Apache web server within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi ! I would like to limit the number of connection open by browsers on a apache web server. I mean, ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-31-2003
Etienne
 
Posts: n/a
Default Limit the number of connections on a Apache web server

Hi !

I would like to limit the number of connection open by browsers on a
apache web server. I mean, I would like that only 5 (for example...)
browser can access to my web server. The others would receive an error
message until a browser "leave" my web server.

Does anybody knows a way to do that ?

I heardt about MaxClients but it doesn't work :'(

Thanks for your help

Etienne Roux
  #2 (permalink)  
Old 07-31-2003
Davide Bianchi
 
Posts: n/a
Default Re: Limit the number of connections on a Apache web server

Etienne <zebreroux@free.fr> wrote:
> I heardt about MaxClients but it doesn't work :'(


From the Apache documentation:
The MaxClients directive sets the limit on the number of simultaneous
requests that can be supported; not more than this number of child server
processes will be created. To configure more than 256 clients, you must
edit the HARD_SERVER_LIMIT entry in httpd.h and recompile.

Any connection attempts over the MaxClients limit will normally be queued,
up to a number based on the ListenBacklog directive. Once a child process
is freed at the end of a different request, the connection will then be
serviced.

The MaxRequestsPerChild directive sets the limit on the number of requests
that an individual child server process will handle. After
MaxRequestsPerChild requests, the child process will die. If
MaxRequestsPerChild is 0, then the process will never expire.

Davide
  #3 (permalink)  
Old 07-31-2003
Benedictum
 
Posts: n/a
Default Re: Limit the number of connections on a Apache web server

Can you do this without hardcoding the limit? There must be a way to change
this parameter externally.

"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:bgajvm$mvai1$3@ID-18487.news.uni-berlin.de...
> Etienne <zebreroux@free.fr> wrote:
> > I heardt about MaxClients but it doesn't work :'(

>
> From the Apache documentation:
> The MaxClients directive sets the limit on the number of simultaneous
> requests that can be supported; not more than this number of child server
> processes will be created. To configure more than 256 clients, you must
> edit the HARD_SERVER_LIMIT entry in httpd.h and recompile.
>
> Any connection attempts over the MaxClients limit will normally be queued,
> up to a number based on the ListenBacklog directive. Once a child process
> is freed at the end of a different request, the connection will then be
> serviced.
>
> The MaxRequestsPerChild directive sets the limit on the number of requests
> that an individual child server process will handle. After
> MaxRequestsPerChild requests, the child process will die. If
> MaxRequestsPerChild is 0, then the process will never expire.
>
> Davide



  #4 (permalink)  
Old 07-31-2003
Davide Bianchi
 
Posts: n/a
Default Re: Limit the number of connections on a Apache web server

Benedictum <nospam@dominus.com> wrote:
> Can you do this without hardcoding the limit? There must be a way to change
> this parameter externally.


Well... besides the fact that I won't do this... you could use
an external firewall for this...

Davide
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0