Is there a way to emulate Squid's redirector interface in reverse proxy
is at rambler-co.ru
Fri Jun 16 17:40:49 MSD 2006
On Fri, 16 Jun 2006, Aleksandar Lazic wrote:
> On Fre 16.06.2006 14:09, Igor Sysoev wrote:
>> On Fri, 16 Jun 2006, Yusuf Goolamabbas wrote:
>>> Squid has a mechanism by which incoming URL's can be passed to an
>>> external program to be rewritten and the reverse proxy subsequently
>>> calls out to the rewritten URL
>>> Is there a way to emulate this from within nginx
>> No, nginx does not support such rewriting. What exact functionality do you
>> need ?
> But how about with the perl-module?
perl_set $new '
my $r = shift;
my $uri = $r->uri;
return "/one/" if $uri =~ /1/;
return "/two/" if $uri =~ /2/;
rewrite ^ $new;
However, currently nginx could change URI only, it could not change
the backend name.
More information about the nginx