Yes, my apache.conf reads:
PerlSendHeader On.

> -----Original Message-----
> From: Drew Taylor [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 05, 2004 5:56 PM
> To: Bram Whillock
> Cc: 'Modperl List'
> Subject: Re: PerlRun, nothing but page header
> 
> Have you tried setting PerlSendHeader? That will automatically send
the
> headers for you. It's very useful for running under Registry.
> 
>  From Writing Apache Modules, pg 144
> > PerlSendHeader On tells mod_perl to intercept anything that looks
> > like a header line and to automatically turn it into a correctly
>  > formatted HTTP/1.0 header the way that Apache does with CGI
scripts.
> 
> 
> Drew
> 
> Bram Whillock wrote:
> 
> > I tried changing the PerlHandler to Apache::Registry and modified
the
> > script so that it does:
> > my $r = shift;
> > $r->send_http_header("text/plain");
> > $r->print("foo");
> > return OK;
> >
> > Which works fine.  But this isn't a good option considering I've got
a
> > lot of code that I want to run under PerlRun.
> >
> > Also, I removed the shebang line to confirm that it's not using the
> > shebang line to resolve the perl interpreter.
> >
> >
> >>-----Original Message-----
> >>From: Stas Bekman [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, April 05, 2004 5:38 PM
> >>To: Bram Whillock
> >>Cc: 'Perrin Harkins'; 'Modperl List'
> >>Subject: Re: PerlRun, nothing but page header
> >>
> >>Bram Whillock wrote:
> >>
> >>>Apache error log says:
> >>>mod_perl/1.25
> >>
> >>That means nothing, besides having mod_perl present. You need to
> >
> > configure the
> >
> >>server to run your script under mod_perl.
> >>
> >>Assuming that your script is under:/var/www/beta/modperl.cgi, your
> >>configuration:
> >>
> >>PerlWarn On
> >>PerlTaintCheck On
> >>PerlModule Apache::PerlRun
> >>
> >><Directory "/var/www/beta">
> >>         SetHandler perl-script
> >>         PerlHandler Apache::PerlRun
> >>         Options ExecCGI
> >>         allow from all
> >>         PerlSendHeader On
> >></Directory>
> >>
> >>should work, as long as you don't reset it, somewhere later in
> >
> > httpd.conf.
> >
> >>e.g. with ScriptAlias directive, which will use mod_cgi to run the
> >
> > script.
> >
> >>__________________________________________________________________
> >>Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> >>http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> >>mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> >>http://modperlbook.org http://apache.org   http://ticketmaster.com
> >
> >
> >
> >
> 
> 
> --
> ----------------------------------------------------------------
> Drew Taylor                 *  Web development & consulting
> Email: [EMAIL PROTECTED]  *  Site implementation & hosting
> Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
> ----------------------------------------------------------------
> 



-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to