Apache 2.4-mod_ratelimit打破mod_自动索引

Apache 2.4-mod_ratelimit打破mod_自动索引,apache,httpd.conf,Apache,Httpd.conf,我正试图在整个apache服务器上启用带宽限制 如果我将以下内容添加到apache2.conf中: SetOutputFilter RATE_LIMIT SetEnv rate-limit 1024 SetEnv rate-initial-burst 1024 我的索引停止工作。我正在使用,并已将其内容复制到我的mods enabled/autoindex.conf 当我访问索引时服务器返回的html是 <!DOCTYPE html> <html> <head&g

我正试图在整个apache服务器上启用带宽限制

如果我将以下内容添加到apache2.conf中:

SetOutputFilter RATE_LIMIT
SetEnv rate-limit 1024
SetEnv rate-initial-burst 1024
我的索引停止工作。我正在使用,并已将其内容复制到我的
mods enabled/autoindex.conf

当我访问索引时服务器返回的html是

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title></title>
  <link rel="stylesheet" type="text/css" href="/fancy-index/style.css">
</head>
<body>


如果我改为将这些速率限制行添加到
指令中,则索引是固定的,并且速率限制在该文件夹中起作用。但是,我正试图用它来限制下载速率,而对该虚拟主机或根目录应用该限制似乎根本不起作用,因此我希望对整个服务器应用该速率限制。

这显然是一个已知的问题: