LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-19-2011, 02:17 PM   #1
drsketch1
Member
 
Registered: Apr 2006
Distribution: CentOS 6.X, pclinuxos
Posts: 50

Rep: Reputation: 15
Question 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!
 
Old 01-19-2011, 02:56 PM   #2
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
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.

Last edited by zer0signal; 01-19-2011 at 02:58 PM.
 
Old 01-19-2011, 04:14 PM   #3
drsketch1
Member
 
Registered: Apr 2006
Distribution: CentOS 6.X, pclinuxos
Posts: 50

Original Poster
Rep: Reputation: 15
Thank you!


Quote:
Originally Posted by zer0signal View Post
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.
 
Old 01-19-2011, 10:34 PM   #4
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Your welcome! Enjoy!
 
  


Reply

Tags
apache, centos, nagios



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios always reloads home page DrStrangepork Linux - Server 4 09-19-2016 12:32 AM
How do I set the home page for website visitors on a fedora 8 server? entsoft Linux - Newbie 2 05-04-2009 07:20 PM
lost start page (home page?) multiplaone Linux - Newbie 1 05-29-2005 06:10 PM
Apache Server up, but acid and MRTG home page could not be view!! yitloo Linux - Networking 1 11-08-2004 04:20 AM
how can i set a blank home page on konqueror? alexii86 Linux - Software 4 10-15-2003 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration