“尝试服务目录:”Nagios通过httpd错误日志抛出错误

我正尝试在yum上的Ec2上安装一个Centos vm上的Nagios

当试图重新启动httpd来获取Nagios时,我被这个错误logging形成了http错误日志

Attempt to serve directory: /usr/share/nagios/html/ 

这是我的nagios.conf

 <VirtualHost *> ServerName nagios.xx.com ServerAlias nagios.xx.com ScriptAlias /nagios/cgi-bin/ /usr/lib64/nagios/cgi-bin/ <Directory /usr/lib64/nagios/cgi-bin/> Options ExecCGI order deny,allow deny from all allow from 127.0.0.1 AuthType Basic AuthUserFile /etc/nagios/passwd AuthName "nagios" require valid-user </Directory> Alias / /usr/share/nagios/html/ <Directory /usr/share/nagios/html/> Options None order deny,allow deny from all allow from 127.0.0.1 AuthType Basic AuthUserFile /etc/nagios/htpasswd.users AuthName "nagios" require valid-user </Directory> </VirtualHost> 

这是perm的html目录

 drwxr-xr-x 8 apache apache 4096 Jun 20 17:53 html 

父目录有这样的perms

Nagios的

 drwxr-xr-x 3 root root 4096 Jun 20 17:53 nagios 

分享

 drwxr-xr-x 103 root root 4096 Jun 20 17:53 share 

USR

 drwxr-xr-x 13 root root 4096 Feb 24 16:30 usr 

有人可以帮我吗?

如果你想从/你的域中运行它,请将DocumentRoot /usr/share/nagios/html/replace为Alias / /usr/share/nagios/html/

顺便说一句,你知道你只能访问目录从你的本地框allow from 127.0.0.1 ,对不对? (除非你使用这个来反向代理)