httpd 限速 和 限制连接 问题

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模块找了安装包,可能由于这个包太老,编译时一值出错?

大家有没有其他的扩展,提供一些解决方案。

阅读 3.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进