Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Limit the number of connections on a Apache web server

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Configure error on Debian  
Author Message
zebreroux

External


Since: Jul 31, 2003
Posts: 1



(Msg. 1) Posted: Thu Jul 31, 2003 3:50 am
Post subject: Limit the number of connections on a Apache web server
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: Limit the number of connections on a Apache web server 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Jul 31, 2003 11:28 am
Post subject: Re: Limit the number of connections on a Apache web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Etienne <zebreroux.DeleteThis@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<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Limit the number of connections on a Apache web server 
Back to top
Login to vote
nospam176

External


Since: Jul 31, 2003
Posts: 3



(Msg. 3) Posted: Thu Jul 31, 2003 6:37 pm
Post subject: Re: Limit the number of connections on a Apache web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> wrote in message
news:bgajvm$mvai1$3@ID-18487.news.uni-berlin.de...
 > Etienne <zebreroux RemoveThis @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<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Limit the number of connections on a Apache web server 
Back to top
Login to vote
warlock

External


Since: Jul 23, 2003
Posts: 4



(Msg. 4) Posted: Thu Jul 31, 2003 6:54 pm
Post subject: Re: Limit the number of connections on a Apache web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 31 Jul 2003 15:37:31 GMT,
Benedictum <nospam.RemoveThis@dominus.com> wrote:
 > Can you do this without hardcoding the limit? There must be a way to change
 > this parameter externally.
 >
 > "Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
 > news:bgajvm$mvai1$3@ID-18487.news.uni-berlin.de...
  >> Etienne <zebreroux.RemoveThis@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
 >
 >


You can set it to anything up to the compile time max, (which is usually
256) That is, if the compile time max is 256, you can set it to any
number less than or equal to that. If you want more than that, you have
to recompile.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/KZ45d90bcYOAWPYRAi8iAKCTqXwhcFvZUXDnN6IeqrTgBTflxwCgyFFM
9ixIRKWjDguwQTT20J029DQ=
=Geut
-----END PGP SIGNATURE-----

--
Jim Richardson <a style='text-decoration: underline;' href="http://www.eskimo.com/~warlock" target="_blank">http://www.eskimo.com/~warlock</a>

Linux, because eventually, you grow up enough to be trusted with a fork()<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Limit the number of connections on a Apache web server 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 5) Posted: Thu Jul 31, 2003 8:13 pm
Post subject: Re: Limit the number of connections on a Apache web server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Benedictum <nospam.TakeThisOut@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<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Limit the number of connections on a Apache web server 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Any one know the maximum number of Named Virtual Hosts? - Hi all I'm just wondering if anyone here knows or knows where to find out what the max number of named virtual hosts is for both Apache 1.3 and Apache 2? Thanks in advance. -- Wayne de Villiers

Running Firewall on Apache Server - Is running an Apache Server on a 2 x nic system (local and Internet) and then using Linux firewall to lock down all put port 80 on the internet side a viable option or am I leaving myself more open than if I ran a seprate firewall? Cheers Tim

replacing SnakeOil default Apache server certificate - Hello, How does one replace the default Apache server's certificate issued as SnakeOil with one's own server certificate when an improvised URL https://www.abc.org:443 is entered and a server certificate served? Can one work with server and client..

Apache Server side include character limits - I was wondering if there is a way to change the character limit on a server side include. I was including a page and it cuts off at 32000 characters. is this a default that can be changed? Any help would be great! Corey

Apache Listening on 443 only - Hi, I configured the httpd.conf file on a brand new install of RH 9 machine and found that Apache is listening on port 443 only, what could be the cause of this? I tried to change the Listen directive and that didn't seem help. Thanks, Yang
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]