perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Maas" <frank.m...@cheiron-it.nl>
Subject RE: can PerlTransHandler deal with this?
Date Thu, 11 May 2006 13:27:16 GMT

> I think i'm using the wrong handler, but is there any handler can handle
> this problem?

As far as I can remember mod_rewrite kicks in after a PerlTransHandler. This should enable
you to use a TransHandler to rewrite the URI based on the database contents, eg:

http://o.example.com/2.gif -> http:/o.example.com/REDIR/o2.example.com/2.gif

(be sure to return DECLINED) and then have mod_rewrite/mod_proxy proxy this for you:

RewriteRule http://o.example.com/REDIR/(.*)	http://$1 [proxy,last]

the 'REDIR' tag can be anything suitable for matching. The end user should not notice this.

Not tested, but think it should work

Regards,
Frank


Mime
View raw message