<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Nagios-users] Apache viewing problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>I am using the same config - and this is what I have in my httpd.conf file:</FONT>
</P>

<P><FONT SIZE=2>ScriptAlias /nagios/cgi-bin/ "/d0/nagios/sbin/"</FONT>
<BR><FONT SIZE=2><Directory "/d0/nagios/sbin/"></FONT>
<BR><FONT SIZE=2>        AllowOverride AuthConfig</FONT>
<BR><FONT SIZE=2>        Options ExecCGI</FONT>
<BR><FONT SIZE=2>        Order allow,deny</FONT>
<BR><FONT SIZE=2>        Allow from all</FONT>
<BR><FONT SIZE=2></Directory></FONT>
</P>

<P><FONT SIZE=2>Alias /nagios "/d0/nagios/share"</FONT>
<BR><FONT SIZE=2><Directory "/d0/nagios/share"></FONT>
<BR><FONT SIZE=2>        Options None</FONT>
<BR><FONT SIZE=2>        AllowOverride AuthConfig</FONT>
<BR><FONT SIZE=2>        Order allow,deny</FONT>
<BR><FONT SIZE=2>        Allow from all</FONT>
<BR><FONT SIZE=2></Directory></FONT>
</P>

<P><FONT SIZE=2>for the answer to this question:</FONT>
<BR><FONT SIZE=2>>Furthermore when i try to start the apache server it says: httpd could not determine the servers fully >qualified domain name, using 127.0.0.1 for Servername.</FONT></P>

<P><FONT SIZE=2>This is usually a problem with the server not being able to resolve it's name - it can usually be solved by making sure that there are dns servers in the /etc/resolv.conf, or by placing the servers name (found in the /etc/sysconfig/network file) in the /etc/hosts file. Play around with the name resolution settings in the resolv.conf and hosts file - restarting httpd server (/etc/rc.d/init.d/httpd restart) and eventually you will be able to start it - I had the same problems with the default install of redhat 8 - and that is how I got the web services up and running - NOTE: I had more luck with the resolv.conf file and making sure that there were valid DNS servers etc..</FONT></P>

<P><FONT SIZE=2>Hope this helps..</FONT>
</P>

<P><FONT SIZE=2>____________________</FONT>
<BR><FONT SIZE=2>Ian Farr</FONT>
<BR><FONT SIZE=2>Director of Network Infrastructure</FONT>
<BR><FONT SIZE=2>Oceanwide.com</FONT>
<BR><FONT SIZE=2>514-289-9090 ext 234</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Raj Mudhar [<A HREF="mailto:Raj.Mudhar@nottingham.ac.uk">mailto:Raj.Mudhar@nottingham.ac.uk</A>]</FONT>
<BR><FONT SIZE=2>Sent: Monday, April 28, 2003 6:14 AM</FONT>
<BR><FONT SIZE=2>To: nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>Subject: [Nagios-users] Apache viewing problem</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi,</FONT>
</P>

<P><FONT SIZE=2>A few questions to ask.. I have followed th nagios book with default directories.  Using RH8</FONT>
</P>

<P><FONT SIZE=2>Now I entered the Alias in the alias bit as shown in the documentation and the Scriptalias in the Scriptalias section as shown in the book.  I added them both directly under the commented headings.</FONT></P>

<P><FONT SIZE=2>Now do i need to use quotes or not.  ie ScriptAlias /nagios/cgi-bin   /usr/local/nagios/sbin/ or should it be</FONT>
<BR><FONT SIZE=2>ScriptAlias /nagios/cgi-bin   "/usr/local/nagios/sbin/"</FONT>
</P>

<P><FONT SIZE=2>Furthermore when i try to start the apache server it says: httpd could not determine the servers fully qualified domain name, using 127.0.0.1 for Servername.</FONT></P>

<P><FONT SIZE=2>Anyway i point my browser at <A HREF="http://127.0.0.1/nagios/" TARGET="_blank">http://127.0.0.1/nagios/</A>  and i get forbidden access!  My actual ip is 128.243.101.47. </FONT>
</P>

<P><FONT SIZE=2>What the hell is going on?</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>-------------------------------------------------------</FONT>
<BR><FONT SIZE=2>This sf.net email is sponsored by:ThinkGeek</FONT>
<BR><FONT SIZE=2>Welcome to geek heaven.</FONT>
<BR><FONT SIZE=2><A HREF="http://thinkgeek.com/sf" TARGET="_blank">http://thinkgeek.com/sf</A></FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Nagios-users mailing list</FONT>
<BR><FONT SIZE=2>Nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2><A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users" TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>
<BR><FONT SIZE=2>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. </FONT>
<BR><FONT SIZE=2>::: Messages without supporting info will risk being sent to /dev/null</FONT>
</P>

</BODY>
</HTML>