httpd 2.4 做了一个下载站点,需要设置下载限速,使用了官方的ratelimit限制速度不起作用(可能是我的配置不对),httpd -t语法检查OK的。
<VirtualHost *:80>
DocumentRoot "/downloads"
ServerName download.xxx.cn
<Location "/downloads">
SetOutputFilter RATE_LIMIT
SetEnv rate-limit 10
#SetEnv rate-initial-burst 512
</Location>
<Directory "/downloads">
#Options FollowSymLinks ExecCGI Indexes
# 允许索引
MaxConnPerIP 1
Options Indexes
Require all granted
AllowOverride All
DirectoryIndex index.html index.php
</Directory>
ErrorLog "/var/log/httpd/error_download.log"
CustomLog "/var/log/httpd/access_download.log" common
</VirtualHost>
mod_bw模块找了安装包,可能由于这个包太老,编译时一值出错?
大家有没有其他的扩展,提供一些解决方案。