httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From victor <>
Subject Re: [users@httpd] how to force users to a 503 (apache 2)
Date Fri, 15 Aug 2003 10:29:32 GMT
I don't think you can do that with apache. the only way I can think of 
is to setup squid in front of apache and use the read_time_out option 
there to terminate the connection between apache and squid after certain 

But note, this way end user will run into a timeout error not 503 
service unavailable.

Btw, have you turned off keep alive in apache?


John Madden wrote:

>Sure, it may sounds odd, but I'd actually like to start dropping clients a
>whole lot sooner and I can't figure out how.
>Due to a CGI process that talks to our mainframe which is causing some
>serious performance issues there, I'd like to throttle back clients at,
>say, 25 connections.
>I've been playing with MaxClients, Min/MaxSpareServers,
>MaxRequestsPerChild, and ListenBacklog for hours to no avail -- the server
>appears to simply queue up the requests and eventually serve them rather
>than forwarding the user to a 503 page.  The error about exceeding
>MaxClients appears in the ErrorLog but the server never appears to
>actually do anything about it.
>Note: I've been doing my testing on 1.3.26 but the production server is
>actually 2.0.something (yeah, we lack in the testing department, and this
>production server is our only 2.0.x box).  I would expect the behavior of
>these config directives to be the same between 1.3 and 2.0, but perhaps
>I'm mistaken.
>I know about mod_throttle, but it appears to have not yet been ported to
>2.0.x.  Would any other modules suffice?  Has anyone run into this before
>and managed to solve it?
>  John

                           Development Engineer
                           Outblaze Ltd

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message