You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Apolinaras \"Apollo\" Sinkevicius" <ap...@yahoo.com> on 2002/03/28 20:40:17 UTC
mod_bandwidth problem (does not work) NEED HELP
I have RedHat 7.2 with the latest Apache installed (via RPM). I installed
mod_bandwidth also via RPM and it does not seem to work, apache spits out
error "Invalid command 'BandWidthDataDir" perhaps mis-spelled or defined by
module not included in the server configuragtion"
Want to say in advance that I HAVE made all the necessary direcotries with
approp permissions.
Here is the excerpt from my conf file:
### Section 1: Global Environment
ServerRoot "/etc/httpd"
LockFile /var/lock/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
TimeOut 300
KeepAlive on
MaxKeepAliveRequests 50
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 5
MaxClients 150
MaxRequestsPerChild 100
Listen *:80
# Dynamic Shared Object (DSO) Support
LoadModule bandwidth_module modules/mod_bandwidth.so
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
AddModule mod_bandwidth.c
BandWidthModule On
BandWidthPulse 100000
BandWidthDataDir /home/*******/temp/apachebw
### Section 3: Virtual Hosts
NameVirtualHost *
BandWidthModule On
<VirtualHost _default_>
DocumentRoot /********
HostNameLookups on
</VirtualHost>
<VirtualHost _default_>
DocumentRoot /*******
ServerName ********
HostNameLookups on
ServerAdmin *******
ServerAlias ******
Options FollowSymlinks
</VirtualHost>
<VirtualHost *>
DocumentRoot /*******
ServerName *******
HostNameLookups on
ServerAdmin *******
ServerAlias ********
Options FollowSymlinks
BandWidthModule On
BandWidthPulse 100000
LargeFileLimit 999 8092
LargeFileLimit 1900 0
<Directory "/mysql">
deny from all
allow from .com
allow from .ca
allow from .net
allow from .org
allow from .de
allow from .uk
Options Indexes
ServerSignature Off
</Directory>
</VirtualHost>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org