CGIs treated as text, not executed?

Marc Powell mpowell at ena.com
Thu Feb 3 16:50:07 CET 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Neal Rauhauser
> Sent: Thursday, February 03, 2005 1:26 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] CGIs treated as text, not executed?
> 
> 
> 
>   I haven't touched the graphical interface for Nagios in maybe five
> years but I don't recall it being as much work as its made for me the
> last few days. I've configured the stuff in /usr/local/etc/apache and
> this seems to be right - accessing http://machine/nagios/ produces a
> nagios page, but when I click on one of the reports it shows me
strings
> from inside the CGI binary instead of executing it. I've checked
> ownership and permissions on the binaries and they look right -
> executeable, owned by www, and they behave like a normal CGI when
> invoked from the command line.
> 
>  The host OS is FreeBSD 4.10 and here is what I believe to the the
> relevant config snippets. I know this has to be some stupid one line
> config thing but I'm just not seeing ... any ideas?
> 
> 
> 
> Alias /nagios/ /usr/local/share/nagios/
> <Directory "/usr/local/share/nagios">
>     Options None
>     AllowOverride AuthConfig
>     Order allow,deny
>     Allow from all
> </Directory>
> 
> ScriptAlias /nagios/cgi-bin/ /usr/local/share/nagios/cgi-bin/
> <Directory "/usr/local/share/nagios/cgi-bin/">
>     AllowOverride AuthConfig
>     Options ExecCGI
>     Order allow,deny
>     Allow from all
> </Directory>
> 

Do you also have --

LoadModule cgi_module         modules/mod_cgi.so
AddModule mod_cgi.c

And possibly (but not necessary in this case I believe) --

AddHandler cgi-script .cgi .pl

You'll need to restart httpd if you make any changes to the conf file of
course.

--
Marc




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list