On Fri, 2005-09-30 at 09:44 -0600, Nathan Given wrote:
> I'm having problems installing nagios on my FC4 machine. 
> Specifically, I'm trying to configure apache and it isn't working...
> 
> Here is what I've done:
> 
> yum install nagios
> yum install nagios-plugins
> 
> I then went to my /etc/httpd/conf/httpd.conf file and uncommented the last 
> line:
> 
> Include /etc/httpd/conf.d/nagios.conf

This is your problem.  Remove that line.  Everything
in /etc/httpd/conf.d/ is already included.  What you are doing here is
to include nagios.conf twice, and that is causing your error.

Michael


> 
> However, when I start the webserver, I get this:
> -------------------------------------------------------------------------
> [EMAIL PROTECTED] conf]# vi httpd.conf
> [EMAIL PROTECTED] conf]# /etc/init.d/httpd stop
> Stopping httpd:                                            [  OK  ]
> [EMAIL PROTECTED] conf]# /etc/init.d/httpd start
> Starting httpd: [Fri Sep 30 09:41:05 2005] [warn] The ScriptAlias
> directive in /etc/httpd/conf.d/nagios.conf at line 1 will probably
> never match because it overlaps an earlier ScriptAlias.
> [Fri Sep 30 09:41:05 2005] [warn] The Alias directive in
> /etc/httpd/conf.d/nagios.conf at line 9 will probably never match
> because it overlaps an earlier Alias.
> httpd: Could not determine the server's fully qualified domain name,
> using 127.0.0.1 for ServerName
>                                                            [  OK  ]
> [EMAIL PROTECTED] conf]#
> ------------------------------------------------------------------------
> 
> Here is my nagios.conf:
> ----------------------------------------------------------------------------------------------
> [EMAIL PROTECTED] conf]# cat /etc/httpd/conf.d/nagios.conf
> ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi/"
> <Directory "/usr/lib/nagios/cgi/">
>    Options ExecCGI
>    order deny,allow
>    deny from all
>    allow from 127.0.0.1
> </Directory>
> 
> Alias /nagios/ "/usr/share/nagios/"
> <Directory "/usr/share/nagios/">
>    Options None
>    order deny,allow
>    deny from all
>    allow from 127.0.0.1
> </Directory>
> 
> [EMAIL PROTECTED] conf]#
> ----------------------------------------------------------------------------------------------
> 
> I looked through my httpd.conf file for other ScriptAliases:
> ----------------------------------------------------------------------------------------------
> [EMAIL PROTECTED] conf]# find . | xargs grep -i 'ScriptAlias'
> ./httpd.conf:# ScriptAlias: This controls which directories contain
> server scripts.
> ./httpd.conf:# ScriptAliases are essentially the same as Aliases, except that
> ./httpd.conf:# The same rules about trailing "/" apply to ScriptAlias
> directives as to
> ./httpd.conf:ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
> ./httpd.conf:# "/var/www/cgi-bin" should be changed to whatever your
> ScriptAliased
> ./httpd.conf:# To use CGI scripts outside of ScriptAliased directories:
> [EMAIL PROTECTED] conf]#
> ----------------------------------------------------------------------------------------------
> 
> It appears there is only one... I looked through my conf.d/ directory also:
> ----------------------------------------------------------------------------------------------
> [EMAIL PROTECTED] conf]# find /etc/httpd/conf.d/ | xargs grep -i
> 'ScriptAlias'
> /etc/httpd/conf.d/nagios.conf:ScriptAlias /nagios/cgi-bin/
> "/usr/lib/nagios/cgi/"
> [EMAIL PROTECTED] conf]#
> ----------------------------------------------------------------------------------------------
> 
> What's going on?  How do I fix this?
> 
> Thanks!
> --
> Nathan
> 
> --------------------
> BYU Unix Users Group 
> http://uug.byu.edu/ 
> 
> The opinions expressed in this message are the responsibility of their
> author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
-- 
Michael Torrie <[EMAIL PROTECTED]>


--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to