perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bram Whillock" <>
Subject PerlRun, nothing but page header
Date Mon, 05 Apr 2004 21:07:11 GMT
I recently built and got up and running apache 1.3.19 with mod_perl and
mod_ssl.  I'm not receiving any error messages, but I cannot get any
output from a test page.

Apache.conf for the directory is as:
PerlWarn On
PerlTaintCheck On
PerlModule Apache::PerlRun

<Directory "/var/www/beta">
        SetHandler perl-script
        PerlHandler Apache::PerlRun
        Options ExecCGI
        allow from all
        PerlSendHeader On

The script I'm trying to run is named modperl.cgi and is as follows:
use CGI::Carp qw(fatalsToBrowser);
use CGI;

$CGI = new CGI();
print $CGI->header("text/html");

print STDOUT "<html><body>Hello</body></html>";

However, this produces a 0 length page in the browser.  If I try and get
the page with lwp I get.
[bram@66 bram]$ lwp-request -USex
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::UserAgent::request: Simple response: OK
User-Agent: lwp-request/2.01

GET --> 200 OK
Connection: close
Date: Mon, 05 Apr 2004 20:56:39 GMT
Server: Apache/1.3.19 (Unix) mod_perl/1.25 mod_ssl/2.8.1 OpenSSL/0.9.7d
Content-Type: text/html; charset=ISO-8859-1
Client-Date: Mon, 05 Apr 2004 20:56:39 GMT
Client-Response-Num: 1
Client-Transfer-Encoding: chunked

[bram@66 bram]$

I can change the content-type which I'm producing headers for to foobar
and the headers that lwp reports change appropriately, however, I still
get no content returned, and no error messages in the apache error logs
either.  Any ideas?  I am totally confused by this.

Report problems:
Mail list info:
List etiquette:

View raw message