<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15">
<TITLE>Problem with CGI</TITLE>

<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff size=2>One 
thing I would check to see is if the default cgi-bin directive is either altered 
or commented out. I prefer commenting it out rather than altering it in order to 
have it available </FONT></SPAN></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff size=2>as a 
template. </FONT></SPAN></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff size=2>The 
default directive has the heading </FONT></SPAN></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff 
size=2>    "/usr/local/apache<EM>version number</EM>/cgi-bin" 
should be changed to whatever your ScriptAliased CGI directory exists if you 
have </FONT></SPAN><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff 
size=2>that configured.</FONT></SPAN></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff 
size=2>Commenting out the default lines and then subsequently restarting the 
Apache server may help.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Garrett Anestos 
  [mailto:GANESTOS@fisinc.com]<BR><B>Sent:</B> Wednesday, October 09, 2002 3:07 
  PM<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> 
  [Nagios-users] Problem with CGI<BR><BR></FONT></DIV>
  <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></BLOCKQUOTE></BODY></HTML>