Torsten Krah wrote:
> Hi.
> 
> I've read around the docs but i dont know if its possible or not.
> Can an perl output filter add a new variable to the current process which can 
> be analyzed by mod_rewrite?
> 
> Background:
> 
> My filter does some internal redirects.
> I want to set a Condition named "ORIGINAL_REQ" to the url of the first, the 
> really first request url - before the internal_redirects happened.

You can pass this king of data to mod_rewrite with $r->subprocess_env('name' => 
'value') on
the mod_perl side and RewriteCond %{ENV:name} on the mod_rewrite side.

See 
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_subprocess_env_

------------------------------------------------------------------------
Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/       m/gozer\@(apache|cpan|ectoplasm)\.org/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to