Re: executing PerlHandler after default_handler?

2009-05-13 Thread Torsten Foertsch
On Wed 13 May 2009, William T wrote:
 What I want to do is issue a redirect if the file that was requested
 is not on disk, and I don't want the extra stat due to an NFS mount.

How about ErrorDocument 404 /modperl/handler/uri?

http://httpd.apache.org/docs/2.2/mod/core.html#errordocument

Torsten

-- 
Need professional mod_perl support?
Just hire me: torsten.foert...@gmx.net


Pass value from filter to anothe filter

2009-05-13 Thread Idel Fuschini
Hi,

I have this configuration on server:

PerlModule ::
PerlTransHandler +::module1
Location /xxx/*
SetHandler modperl
PerlInputFilterHandler ::module2
/Location

and I want to pass variable from module1 to module2 is it possible ?
-- 
Idel
=
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter.html


Re: Pass value from filter to anothe filter

2009-05-13 Thread Adam Prime

Idel Fuschini wrote:

Hi,

I have this configuration on server:
 
PerlModule ::

PerlTransHandler +::module1
Location /xxx/*
SetHandler modperl
PerlInputFilterHandler ::module2
/Location

and I want to pass variable from module1 to module2 is it possible ?


I think it should be, i would expect you would be able to user 
$r-pnotes.  It looks like the filters happen after translation based on 
this:


http://perl.apache.org/docs/2.0/user/handlers/http.html#HTTP_Request_Cycle_Phases

Adam




Re: Pass value from filter to anothe filter

2009-05-13 Thread William T
On Wed, May 13, 2009 at 3:09 AM, Idel Fuschini idel.fusch...@gmail.com wrote:
 PerlModule ::
 PerlTransHandler +::module1
 Location /xxx/*
     SetHandler modperl
     PerlInputFilterHandler ::module2
 /Location

 and I want to pass variable from module1 to module2 is it possible ?

You can you use either pnotes or subprocess_env (env variables).

-wjt