Click here to get back home

mod_perl -> Can't enable PerlResponeHandler in

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
mod_perl -> Can't enable PerlResponeHandler in r3gis 01-07-2008
Posted by r3gis on January 7, 2008, 7:06 am
Please log in for more thread options
Hi ,

I have been trying to enable PerlResponseHandler in the <Location /
start > directive of my VirtualHost ...but for some reason it doesn't
work ...

I really cant understand why it does i if I put it directly to the
VirtualHost ... I would be very greatful if someone could explain this
to me .

This is my apache configuration :
[ If I go to the http://bookshelf/ everything works great... on the
other hand I dont get anything in the http://bookshelf/start ( Just
blank page with few basic headers ).

<VirtualHost *:80>

ServerName bookshelf
RewriteEngine on
DocumentRoot /var/www/apache2-default
LogLevel Info
CustomLog /var/log/apache2/bookshelf-access.log common
PerlModule MyApache::Handler
SetHandler perl-script
PerlResponseHandler MyApache::Handler

<Location /start >
PerlResponseHandler MyApache::Handler
</Location>


<Directory / >
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>

</VirtualHost>

Regards
Piotrek Duszynski

Posted by Big and Blue on January 7, 2008, 4:21 pm
Please log in for more thread options
r3gis wrote:
>
> I really cant understand why it does i if I put it directly to the
> VirtualHost ... I would be very greatful if someone could explain this
> to me .

Is there anything in the server logs?

Have you added a print to STDERR in your Handler code to check that it
is called (the output will end up in the Error log)?

>
> This is my apache configuration :
> [ If I go to the http://bookshelf/ everything works great... on the
> other hand I dont get anything in the http://bookshelf/start ( Just
> blank page with few basic headers ).
>
> <VirtualHost *:80>
>
> ServerName bookshelf
> RewriteEngine on
> DocumentRoot /var/www/apache2-default
> LogLevel Info
> CustomLog /var/log/apache2/bookshelf-access.log common
> PerlModule MyApache::Handler
> SetHandler perl-script
> PerlResponseHandler MyApache::Handler
>
> <Location /start >
> PerlResponseHandler MyApache::Handler
> </Location>

You haven't posted the code for MyApache::Handler!

Is this module in @INC for the running web server?

Is the function within it which you wish to be called called handler()?


--
Just because I've written it doesn't mean that
either you or I have to believe it.

Similar ThreadsPosted
CGI.pm and ModPerl::Registry December 21, 2007, 11:20 pm
modperl and apache handlers December 28, 2004, 5:38 am
CPAN conflict issue - CGI.pm vs ModPerl::Registry September 25, 2006, 12:42 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap