The order problem for install nagios and apache?

I installed nagios and plugin prior to installing apache.now I configured the /usr/local/apache2/conf/httpd.conf according to doc.

I added the following into httpd.conf


ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory

you need to access " ](http://)/nagios ", probably the apache.com you accessed is a internet web site unless you have your own dns/hosts file changed.

So apache.com has a nagios installation or are you working for apache.com and are triing to setup nagios at that site? If so, you may want to learn a bit more about linux before attempting to setup nagios on linux.

I have setup the nagios on linux before installing apache. I typed the my-web-svr-ip-address,then the apache web appeared,and I typed the
my-web-svr-ip-address/nagios again ,this site couldnot be accessed,
I am trying to learn liunx more.

Kind Regards!

Minquan

" my-web-svr-ip-address/nagios again ,this site couldnot be accessed, "

Reason is because you didn’t setup the nagios website per the docs. Read the docs again and perform those instructions.
nagios.sourceforge.net/docs/1_0/installweb.html

btw, it’s not really my-web-svr-ip-address/nagios

It’s really whatever your website is, try this instead.
localhost/nagios

I have already setup the nagios website per the docs before I tried.

After you make a change to the apache config you have to restart the webserver. If you are in doubt, perform all the steps in the documentation again.