<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Problem with CGI</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hello all-</FONT>
</P>

<P><FONT SIZE=2>I have installed Nagios on a FreeBSD box and I'm having issues access the website.  I believe my issue resides in the httpd.conf file.  I'm a bit of a newbie when it comes to Apache.</FONT></P>

<P><FONT SIZE=2>In the directions it tells me to add this......</FONT>
</P>

<P><FONT SIZE=2>ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/</FONT>
<BR><FONT SIZE=2><Directory "/usr/local/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>
<BR>

<P><FONT SIZE=2>and this ..............</FONT>
</P>

<P><FONT SIZE=2>Alias /nagios/ /usr/local/nagios/share/</FONT>
<BR><FONT SIZE=2><Directory "/usr/local/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>Into the the httpd.conf.  I guess it does not mater where they go as long as the top one is before the bottom one listed above.  Correct? or do they need to go in the Aliases section of the httpd.conf file?  If it goes in the script area do I replace the current ones or just add the new ones?</FONT></P>

<P><FONT SIZE=2>Now the /usr/local/nagios section in the above ScriptAlias/Alias is different on my installation.  Mine is /netsaint/nagios/sbin which I have adjusted.  Also I do not have a /nagios/cgi-bin directory as stated above.....do I need to have one?  If so do I just use the default Apache one? Do i need to adjust it like so?</FONT></P>

<P><FONT SIZE=2>ScriptAlias /netsaint/nagios/cgi-bin/ /netsaint/nagios/sbin/</FONT>
<BR><FONT SIZE=2><Directory "/netsaint/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>And similar with the Alias section?  </FONT>
</P>

<P><FONT SIZE=2>Thanks for your help!</FONT>
</P>

<P><FONT SIZE=2>G</FONT>
</P>

</BODY>
</HTML>