Re: mod_throttle in apache-ssl
Hi there.
I dont really have a solution for you, however my setup is like this.
I wanted to limit a specific directory to 10 mbit/s ;
from /etc/apache-ssl/httpd.conf ;
# Load the module
LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
# Configure module parms.
<IfModule mod_throttle.c>
ThrottlePolicy none
ThrottleMaxDelay 10
<Location /throttle-status>
SetHandler throttle-status
Order deny,allow
Deny from all
Allow from my.firewall
</Location>
<Location /throttle-me>
SetHandler throttle-me
Order deny,allow
Deny from all
Allow from my.firewall
</Location>
<Location /~*/throttle-me>
SetHandler throttle-me
Order deny,allow
Deny from all
Allow from my.firewall
</Location>
</IfModule>
# Then I just apply the rule.. (10 mbps ~ 1000 kbyte/sec)
<Directory /the/directory/to/limit>
ThrottlePolicy speed 1000 1
..
</Directory>
This setup works for me, hope it helps.
Regards,
Christofer Algotsson
> I want to use mod_throttle to control the bandwidth of a particular web on
> my system. So, I have activated the module in /etc/apache-ssl/httpd.conf:
>
> ...
> LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
> ...
>
> And I have insert this on the VirtualHost:
>
> <VirtualHost my.system.com:80>
> ...
> ThrottlePolicy speed 50 1
> ...
> </VirtualHost>
>
> And when I reload Apache I obtain this on /var/log/apache-ssl/error.log:
>
> ...
> critical_acquire() failed: Identifier removed
> critical_release() failed: Identifier removed
> ...
>
> Does anybody know what happens?
Reply to: