| due to the very boring fact that bandwidth in germany is very expensive
| we have to limit the bandwidth wich is available for a virtual web server
| running on a linux machine.
You might want to look at Jef Poskanzer's thttpd, available from
Info about the bandwidth limiting feature:
The throttle file lets you set maximum byte rates on URLs or URL groups.
There is no provision for setting a maximum request rate throttle, because
throttling a request uses as much cpu as handling it, so there would be no
Throttling is implemented by checking each incoming URL filename against
all of the patterns in the throttle file. The server accumulates statistics
on how much bandwidth each pattern has accounted for recently (via a
rolling average). If a URL matches a pattern that has been exceeding its
specified limit, then the data returned is actually slowed down, with
pauses between each block. If that's not possible (e.g. for CGI programs),
then the server returns a special code saying 'try again later'.