Apache中的DirectoryIndex应该是什么文件才能正确地服务于Munin图?

这可能会是其中之一 答案,但是我花了整晚的时间在慕尼黑寻找教程和常见问题,似乎无法find答案。

我安装了Munin,并且正在尝试使用Apache来显示图表的页面。 我的/etc/munin/munin.conf如下所示:

dbdir /var/lib/munin htmldir /var/www/html/munin logdir /var/log/munin rundir /var/run/munin tmpldir /etc/munin/templates [localhost] address 127.0.0.1 use_node_name yes 

如您所见,HTMLdir被设置为/ var / www / html / munin。 在该目录中,我有以下文件:

在这里输入图像说明

我试图使用Apache服务status.*mydomain*.com作为仪表板与所有的穆宁图。 我的/etc/httpd/conf/httpd.conf有一个如下所示的虚拟主机:

 <VirtualHost *:80> ServerName status.*mydomain*.com DirectoryIndex ###WTF IS THIS???? DocumentRoot /var/www/html/munin </VirtualHost> <directory /var/www/html/munin/> AllowOverride None Options ExecCGI FollowSymlinks AddHandler cgi-script .cgi # DirectoryIndex index.cgi AuthUserFile /etc/munin/munin.passwd AuthType basic AuthName "Munin stats" require valid-user </directory> 

我的问题是,我不知道DirectoryIndex需要什么。 我看到的唯一的文件看起来像Apache将知道如何服务的是definitions.html ,我试过这样做,但该页面没有任何graphics。 我读过的每个教程都掩盖了这个细节,所以我不确定默认情况下应该是什么。

PS:如果有帮助,我检查了cron日志,是的,我知道Munin每5分钟更新一次图表。 我只是不知道如何正确地服务他们! 谢谢!!

编辑: .htaccess看起来像默认的穆宁一:

 # This file can be used as a .htaccess file, or a part of your apache # config file. # # For the .htaccess file option to work the munin www directory # (/var/www/html/munin) must have "AllowOverride all" or something close # to that set. # # As a config file enclose it in <directory> like so: # # <directory /var/www/html/munin> AuthUserFile /etc/munin/munin-htpasswd AuthName "Munin" AuthType Basic require valid-user # This next part requires mod_expires to be enabled. # # We could use <IfModule mod_expires> around here, but I want it to be # as evident as possible that you either have to load mod_expires _or_ # you coment out/remove these lines. # Set the default expiery time for files 5 minutes 10 seconds from # their creation (modification) time. There are probably new files by # that time. ExpiresActive On ExpiresDefault M310 # </directory> 

DirectoryIndex应该是index.html 。 一旦启动了munin-node (或运行/usr/bin/munin-cron ),它将自动生成。