You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Francesc Guasch <fr...@etsetb.upc.es> on 2003/03/13 11:53:45 UTC
binary cgi mess
I have a mod_perl server and I need to add a cgi application
outside mod_perl, nagios.
I followed the guide and when I try to use the cgis, the
binary files are downloaded instead of executed.
I tried the same in another apache server without Mason
and it worked well. So I think something of my config must
be messing it.
I made sure the mason handler wasn't in the middle. I added
a debugging line in the very beginning of it.
Here is the nagios config for apache:
AddType application/x-httpd-cgi .cgi
ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
<Location /nagios/cgi-bin>
Options ExecCGI
</Location>
<Directory /usr/lib/nagios/cgi/>
AllowOverride AuthConfig
Options ExecCGI
order deny,allow
deny from all
allow from ip_removed
</Directory>
Alias /nagios/ /usr/share/nagios/
<Directory /usr/share/nagios/>
AllowOverride AuthConfig
Options None
order deny,allow
deny from all
allow from ip_removed
</Directory>
use Apache::AuthDBI;
any hints ? Thank you for your time.
--
frankie
Re: binary cgi mess
Posted by Francesc Guasch <fr...@etsetb.upc.es>.
Abdul-wahid Paterson wrote:
> Hi,
>
> Shouldn't it be
>
> AddHandler cgi-script .cgi
>
Well, thank you for trying. I replaced the line:
AddType application/x-httpd-cgi .cgi
for the one you told me, now the binary file isn't
displayed in the browser, but it prompts me to download
it. So it isn't executed in the server.
I also tried to have both lines with the same results.
>
> On Thu, 2003-03-13 at 10:53, Francesc Guasch wrote:
>
>>I have a mod_perl server and I need to add a cgi application
>>outside mod_perl, nagios.
>>
>>I followed the guide and when I try to use the cgis, the
>>binary files are downloaded instead of executed.
--
frankie
Re: binary cgi mess
Posted by Abdul-wahid Paterson <aw...@lintrix.net>.
Hi,
Shouldn't it be
AddHandler cgi-script .cgi
Regards,
Abdul-Wahid
On Thu, 2003-03-13 at 10:53, Francesc Guasch wrote:
> I have a mod_perl server and I need to add a cgi application
> outside mod_perl, nagios.
>
> I followed the guide and when I try to use the cgis, the
> binary files are downloaded instead of executed.
> I tried the same in another apache server without Mason
> and it worked well. So I think something of my config must
> be messing it.
>
> I made sure the mason handler wasn't in the middle. I added
> a debugging line in the very beginning of it.
>
> Here is the nagios config for apache:
>
> AddType application/x-httpd-cgi .cgi
> ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
>
> <Location /nagios/cgi-bin>
> Options ExecCGI
> </Location>
>
> <Directory /usr/lib/nagios/cgi/>
> AllowOverride AuthConfig
> Options ExecCGI
> order deny,allow
> deny from all
> allow from ip_removed
> </Directory>
>
> Alias /nagios/ /usr/share/nagios/
> <Directory /usr/share/nagios/>
> AllowOverride AuthConfig
> Options None
> order deny,allow
> deny from all
> allow from ip_removed
> </Directory>
> use Apache::AuthDBI;
>
> any hints ? Thank you for your time.