You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Dan O'Connor <da...@mostgraveconcern.com> on 2000/08/05 02:45:50 UTC

Problem with mod_perl and CGI script with Netscape

Greetings,

A couple of days ago, I installed mod_perl to speed up a CGI program I use
to generate HTML pages for my web site http://www.mostgraveconcern.com .

The CGI script is a perl script that ran fine before mod_perl, and now runs
fine with Internet Explorer, but Netscape Navigator insists on downloading
the page instead of executing it on the server and rendering the output.

The CGI script is called with an HTML anchor tag such as:
    <A
HREF="qengine.cgi?frames=OFF&mode=TOPIC&terms=Government">Government</A>

My httpd.conf file has the entry:

<Directory /usr/local/www/html/quotes>
    <Files ~ "\.cgi$">
        Options ExecCGI Includes
        SetHandler perl-script
        PerlHandler Apache::Registry
        PerlSendHeader Off
    </Files>
    AllowOverride None
    Options Indexes ExecCGI Includes
    Order allow,deny
    Allow from all
</Directory>

I embeded the <Files> section inside the <Directory> because I have other
cgi scripts in other directories that are compiled programs.

When I try 'PerlSendHeader On', Internet Explorer chokes on SSI tags after
'<!--#exec cgi=" ', displaying the name of the SSI script, e.g.,
'css.cgi">', while Netscape simply prints out the document (HTML tags and
all) without rendering it.

I searched the mailing list archives, but couldn't find anything about this.
I also printed out a lot of mod_perl documentation, but I've got about 800
pages to go through...

If someone has run into this before, I'd really appreciate hearing from you!

TIA,

--Dan

--
Dan O'Connor
On Matters of Most Grave Concern
    http://www.mostgraveconcern.com
FreeBSD Cheat Sheets
    http://www.mostgraveconcern.com/freebsd/