Re: mod_rewrite + PerlTransHandler

2003-01-20 Thread cowsgoesm00
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 20 Jan 2003 10:10:36 +1100, Stas Bekman wrote:
>Not in mod_perl 1.0. Your best bet is probably to move the
>mod_rewrite's
>rules into your perl transhandler.

or maybe just have mod_rewrite take precedence over mod_perl, by
having LoadModule mod_rewrite after mod_perl's?

cheers,
<[EMAIL PROTECTED]> - wa1800z@DALnet&CAiRC - #32741432
KeyID 0xDE9EB50B - D0D87CA98916CBB258AC 77FB91E0DA95DE9EB50B

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+K9+4keDald6etQsRAid0AJ48NUaxGwFIwDw9Kzfq0AVwTZ1bVgCfdgwe
tnAu1NE/HanCb4RKIw/b6s0=
=uVGf
-END PGP SIGNATURE-




Re: mod_rewrite + PerlTransHandler

2003-01-19 Thread Stas Bekman
Torsten Foertsch wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I am trying to get a PerlTransHandler called *after* some mod_rewrite 
processing.

I thought if I configure the rewrite rules *before* the PerlTransHandler:

RewriteEngine   On
RewriteRule	...	[PT]
PerlTransHandler Apache::TestTrans::transhandler

it would work that way. But it does not.

&Apache::TestTrans::transhandler is always called *before* mod_rewrite 
processing.

Is there a way to determine the handler order?

Not in mod_perl 1.0. Your best bet is probably to move the mod_rewrite's 
rules into your perl transhandler.

It should be possible in 2.0, though the API is not there yet. Apache 2.0 
allows to insert handlers before/after a specified handler + other options.

__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



mod_rewrite + PerlTransHandler

2003-01-19 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I am trying to get a PerlTransHandler called *after* some mod_rewrite 
processing.

I thought if I configure the rewrite rules *before* the PerlTransHandler:

RewriteEngine   On
RewriteRule ... [PT]
PerlTransHandler Apache::TestTrans::transhandler

it would work that way. But it does not.

&Apache::TestTrans::transhandler is always called *before* mod_rewrite 
processing.

Is there a way to determine the handler order?

Thanks
Torsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+Kt+/wicyCTir8T4RAqmNAJsGfm6CaPueSjCRAIA/BZ1BgWtxxACfWCLY
GAo8nB1xxL1r+7blx7+qbi8=
=473P
-END PGP SIGNATURE-