mod_perl -> Can"t enable PerlResponeHandler in <Location>

mod_perl -> Can"t enable PerlResponeHandler in <Location>

am 07.01.2008 13:06:05 von r3gis

Hi ,

I have been trying to enable PerlResponseHandler in the 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 ).



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


PerlResponseHandler MyApache::Handler




Order deny,allow
Deny from all
Allow from 127.0.0.1




Regards
Piotrek Duszynski

Re: mod_perl -> Can"t enable PerlResponeHandler in <Location>

am 07.01.2008 22:21:32 von Big and Blue

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 ).
>
>
>
> 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
>
>
> PerlResponseHandler MyApache::Handler
>


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.