Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: mod-perl configuration under Apache2

by cbrandtbuffalo (Deacon)
on Mar 07, 2007 at 20:12 UTC ( [id://603708]=note: print w/replies, xml ) Need Help??


in reply to mod-perl configuration under Apache2

You might be having problems with the way you are manually setting the HTTP response header. If you want to set them manually with a print statement under mod_perl 2, you should set the following in httpd.conf:
PerlOptions +ParseHeaders
The preferred and faster method is to write a handler and use the methods provided by Apache2::RequestRec:
use Apache2::RequestRec (); # Inside your handler... $r->content_type('text/html');
You could also use CGI.pm and it should do the right thing:
use CGI; print CGI::header();
Does this make a difference? What does the access log show? Is it serving a page? You can also print out $ENV{MOD_PERL} and it should tell you if you are running mod_perl and what version, but you need to get the script running first. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://603708]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found