Re: Apache - bandwidth usage limit per vhost

2010-03-11 Thread Ozgur Kazancci
> > Just curious.. did 'apachectl graceful' tell you anything about that > > missing file when testing? > > That's my first and favorite debug command for apache esp. in production > > env. > > > > > > > Sorry!! I meant to ask about 'apachectl configtest'. THAT is my > favorite -- No error.

Re: Apache - bandwidth usage limit per vhost

2010-03-11 Thread Ozgur Kazancci
> Just curious.. did 'apachectl graceful' tell you anything about that missing file when testing? -- No, 'apachectl graceful' did not give any error.

Re: Apache - bandwidth usage limit per vhost

2010-03-11 Thread Ted Roby
On Thu, Mar 11, 2010 at 10:17 AM, Ted Roby wrote: > > > On Thu, Mar 11, 2010 at 6:17 AM, Ozgur Kazancci < > ozgur.kazan...@info.uvt.ro> wrote: > >> Oh, my mistake.. I forgot that it was a jailed httpd. >> >> There was a "File Not Found: /usr/lib/apache/modules/mod_throttle.so" >> message in the e

Re: Apache - bandwidth usage limit per vhost

2010-03-11 Thread Ted Roby
On Thu, Mar 11, 2010 at 6:17 AM, Ozgur Kazancci wrote: > Oh, my mistake.. I forgot that it was a jailed httpd. > > There was a "File Not Found: /usr/lib/apache/modules/mod_throttle.so" > message in the error_log, but the file was already there (out of chroot > path). So, I copied the mod_throttle.

Re: Apache - bandwidth usage limit per vhost

2010-03-11 Thread Ozgur Kazancci
Oh, my mistake.. I forgot that it was a jailed httpd. There was a "File Not Found: /usr/lib/apache/modules/mod_throttle.so" message in the error_log, but the file was already there (out of chroot path). So, I copied the mod_throttle.so file into /var/www/conf/modules and changed the path of Loa

Re: Apache - bandwidth usage limit per vhost

2010-03-11 Thread Ozgur Kazancci
Mr. Coppa, Thank you very much for the patch. It compiles without any error and it works ok but I've noticed that if the mod_throttle is loaded, apache doesn't want to restart with 'apachectl restart' anymore. You should manually 'apachectl stop' and 'apachectl start' it; A demonstration: # ap

Re: Apache - bandwidth usage limit per vhost

2010-03-10 Thread Joachim Schipper
On Tue, Mar 09, 2010 at 06:20:36PM +, Gaby Vanhegan wrote: > On 9 Mar 2010, at 17:42, Ozgur Kazancci wrote: > > > Apache doesn't come with such a feature. I tried mod_cband. It was quite > > unstable, has too many bugs, issues. (Dozens of unfixed security > > issues, bugs since few years: > ht

Re: Apache - bandwidth usage limit per vhost

2010-03-10 Thread David Coppa
On Wed, 10 Mar 2010, Ozgur Kazancci wrote: > Any ideas for "structure has no member named `sin_addr'" error? Can you try the following patch? cheers, David --- mod_throttle.c.orig Sun Dec 3 11:15:10 2000 +++ mod_throttle.c Wed Mar 10 16:52:55 2010 @@ -719,7 +719,7 @@ #include #includ

Re: Apache - bandwidth usage limit per vhost

2010-03-09 Thread Ozgur Kazancci
Thanks a lot for the suggestions. > Then what you need is exactly mod_throttle. > mod_throttle project is discontinued but the latest version works just fine > and does it job very well. > I use it with stock Apache since OpenBSD 3.4 and never had problems with it. Could you tell me the version

Re: Apache - bandwidth usage limit per vhost

2010-03-09 Thread Marcos Laufer
> On 9 Mar 2010, at 17:42, Ozgur Kazancci wrote: > > >> I'd like to set a (monthly) bandwidth quota limit to my Apache virtualhosts. >> >> For instance, domain.com would have an amount of 10G/Month bandwidth limit >> (and in case of exceeding the limit, it'd get redirected to a "Bandwidth

Re: Apache - bandwidth usage limit per vhost

2010-03-09 Thread Gaby Vanhegan
On 9 Mar 2010, at 17:42, Ozgur Kazancci wrote: > Apache doesn't come with such a feature. I tried mod_cband. It was quite > unstable, has too many bugs, issues. (Dozens of unfixed security issues, bugs > since few years: http://sourceforge.net/tracker/?group_id=154335&atid=791368 > ), there is no

Re: Apache - bandwidth usage limit per vhost

2010-03-09 Thread Gaby Vanhegan
On 9 Mar 2010, at 17:42, Ozgur Kazancci wrote: > I'd like to set a (monthly) bandwidth quota limit to my Apache virtualhosts. > For instance, domain.com would have an amount of 10G/Month bandwidth limit > (and in case of exceeding the limit, it'd get redirected to a "Bandwidth limit > exceeded" al

Apache - bandwidth usage limit per vhost

2010-03-09 Thread Ozgur Kazancci
Hello everyone, I'd like to set a (monthly) bandwidth quota limit to my Apache virtualhosts. For instance, domain.com would have an amount of 10G/Month bandwidth limit (and in case of exceeding the limit, it'd get redirected to a "Bandwidth limit exceeded" alert page.) Apache doesn't come with su