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

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
r3gis [ Mo, 07 Januar 2008 13:06 ] [ ID #1902200 ]

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

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 [at] 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.
Big and Blue [ Mo, 07 Januar 2008 22:21 ] [ ID #1902201 ]
Perl » comp.lang.perl.modules » mod_perl -> Can't enable PerlResponeHandler in <Location>

Vorheriges Thema: mod_perl2, Apache2::RequestID::read
Nächstes Thema: How to Add dynamic array/hashes to Curses::UI:Listbox -lables