<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Courier New, Courier, monospace">Philipp,<br>
<br>
since you compiled nagios to with "--with-htmurl=/home/nagios" it would
look here by default for "/cgi-bin", however you change that behavior
when you put an alias for "/" in your apache config. Now it is
looking for "/usr/local/nagios/share/home/nagios/cgi-bin/" because you
set this alias. This alias is pretty much cancelling out the
"--with-htmurl" compile time parameter you set.<br>
<br>
Unless you are really wanting the setup all over the place like it
looks, There are a couple of ways to fix your problem:<br>
<br>
1. recompile nagios with the normal settings, since it looks like you
are just repointing back to the default location <br>
<br>
<br>
<br>
ServerName <servername.org><br>
DocumentRoot /usr/local/nagios/share<br>
DirectoryIndex index.html index.html.var index.htm default.htm index.php<br>
Options None<br>
<br>
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin<br>
<Directory "/usr/local/nagios/sbin"><br>
AllowOverride AuthConfig<br>
Options ExecCGI<br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
<br>
<br>
2. setup an apache alias for /home/nagios/cgi-bin<br>
</font>
<pre wrap=""><font face="Courier New, Courier, monospace"> ScriptAlias /home/nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options +ExecCGI
Order allow,deny
Allow from all
</Directory></font></pre>
<br>
<br>
-JPH<br>
<br>
<br>
<font face="Courier New, Courier, monospace">Philipp Snizek wrote:</font>
<blockquote
cite="midF7CC1069108AC843A687E857A914A393010E06@schrotty.seaan.net"
type="cite">
<pre wrap=""><font face="Courier New, Courier, monospace">Hi
I compiled nagios with --prefix=/usr/local/nagios
--with-cgiurl=/home/nagios/cgi-bin --with-htmurl=/home/nagios.
Apache Server however can't find the cgi scripts. Please see the error
below.
Most likely this is just due to my lack of knowledge how to configure
apache correctly. Nevertheless following the documentation and
changing the parameters needed didn't help much.
Thanks for any help
Regards,
Philipp
Listen ip.address:80
NameVirtualHost ip.address:80
<VirtualHost host.domain.tld:80>
ServerName host.domain.tld
DocumentRoot "/home/nagios/"
<Directory "/home/nagios/">
AllowOverride None
Options Indexes
DirectoryIndex index.htm index.html index.php
</Directory>
ScriptAlias /cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias / /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
That's the error I get for all cgi scripts. The path is wrong. I just
can't figure out how to set it correctly.
[Wed Mar 9 08:56:01 2005] [error] [client ip.address] File does not
exist: /usr/local/nagios/share/home/nagios/cgi-bin/status.cgi
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_ide95&alloc_id396&op=click">http://ads.osdn.com/?ad_ide95&alloc_id396&op=click</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</font></pre>
</blockquote>
</body>
</html>