New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Limit concurrent connection httpd

in Help
HI,
I am using httpd 2.4 to make my webserver.
I want to make webserver as storage server to store files here.
When guest downloads my file. I want to limit per file as 2MB/s and 4 connections is maximum.
But they can request many files at the same time on same server.
Is it ok?
I tried with mod limitconnect and mod ratelimit. But i cant do Please give me some advices or solutions.
Thanks in advance.
Comments
http://lmgtfy.com/?q=Limit+concurrent+connection+httpdThird link looks like it should do what you want
Reading a little further, seems like you would have to do something server side with sessions, as you want to limit bandwidth and connections per user.
I think you dont understand what i mean
mod_cband & mod_bw & mod_bandwidth didnt provide my solution.
User 1 download 10 file at server A
I want to limit A by
file 1 : 2MB/s 4 concurrent connections
file 2 : 2MB/s 4 concurrent connections
file 3 : 2MB/s 4 concurrent connections
file 4.....10
Clear ?
Yea, edited my post above.
I can't see anything in the httpd documentation that would do what you want.
THank you.....
Apache declare maxClients (like 'concurrent connections' that you tell) as 'global' paramenter. It's mean every user/website will be share it.
If using event/worker mpm, it's possible limiting via php.
Yes, i am finding a way via php, i am viewing fread to limit speed and connection. Looks like it works well with speed but, i dont know how to increase connection because it is 1 connection at default. Also i cant resume download through it.