我试图通过将其重定向到一个空文件来阻止用户访问 munin 的主页
我相信这里的问题是 mod_rewrite:
# HTML
RewriteCond %{REQUEST_URI} !^/static
RewriteCond %{REQUEST_URI} .html$ [or]
RewriteCond %{REQUEST_URI} =/
RewriteRule ^/(.*) /opt/munin/www/cgi/munin-cgi-html/$1 [L]
我不确定如何防止根 index.html 指向 /opt/munin/www/cgi/munin-cgi-html/ 这是一个用于每个 index.html 页面的 perl 脚本。