mod_perl

Wesley Darlington wesley at yelsew.com
Tue Sep 18 08:00:41 CDT 2001


On Tue, Sep 18, 2001 at 12:45:56PM +0100, barry wrote:
> On Tue, Sep 18, 2001 at 07:21:17AM -0400, Wesley Darlington mumbled:
> > On Tue, Sep 18, 2001 at 11:44:28AM +0100, barry wrote:
> > >   <Files *.cgi>
> > >     SetHandler perl-script
> > >     PerlHandler Apache::Registry
> > >     PerlModule DBI CGI
> > >     PerlSendHeader off
> > >     Options +ExecCGI
> > >   </Files>
> > > dunno if you mean that by off, or removing that part altogether
> > Remove it altogether, if you haven't already. Do you have any other 
> > references to that directive anywhere else? I have a notion that a 
> > <Location> thingy might be a better, but that's probably just silly.
> 
> 100+ 12:43pm bazza at taurus:~>grep -c SendHeader /etc/apache/httpd.conf
> 0

Does debian's apache use just the one config file?

> my cgi (exactly the same as http://bazza.com/ right now) does this to print a
> header
> 
> print <<"END";
> Content-Type: text/html
> 
> <html>
> END
> (etc)
> 
> but the Content-Type line is being printed to the browser .. unless debian's
> default apache + libapache-mod-perl install is doing summat weird

Is your script definitely being run under Apache::Registry?
Could you post (perhaps a link to) your script's source?
Could you try putting the script under some directory and
Apache::Registry-enabling that with a <Location> header?

Wesley.



More information about the Belfast-pm mailing list