LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Set nagios to apache start/home page (http://www.linuxquestions.org/questions/linux-server-73/set-nagios-to-apache-start-home-page-857353/)

drsketch1 01-19-2011 03:17 PM

Set nagios to apache start/home page
 
Hello all:

Been a very long time since I have played with Linux... Now in a new position and have setup a Nagios server running on Centos 5,5 for a NMS.

How do I set apache that when I visit: whatever.org

it starts Nagios.. Currently I have to go to whatever.org/nagios.

Thanks for any and all help!

zer0signal 01-19-2011 03:56 PM

I would go and edit vi /etc/httpd/conf/httpd.conf <== not quite sure, but should be in there...

find
Quote:

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/htdocs"
&

Quote:

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/htdocs">
and point to where your /nagios/index.php is located.

that should allow www.whatever.com to open Nagios Web Admin, as soon as page is loaded.

drsketch1 01-19-2011 05:14 PM

Thank you!


Quote:

Originally Posted by zer0signal (Post 4230631)
I would go and edit vi /etc/httpd/conf/httpd.conf <== not quite sure, but should be in there...

find


&



and point to where your /nagios/index.php is located.

that should allow www.whatever.com to open Nagios Web Admin, as soon as page is loaded.


zer0signal 01-19-2011 11:34 PM

Your welcome! Enjoy!


All times are GMT -5. The time now is 06:23 AM.