Is there a way to emulate Squid's redirector interface in reverse proxy

Igor Sysoev is at
Fri Jun 16 14:09:41 MSD 2006

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 ? nginx may rewrite URIs using regular
expressions and simple mapping:

http {
     map  $uri  $new {
         /one/     /two/;
         /first/   /second/;

     server {
         rewrite  ^  $new;

Igor Sysoev

More information about the nginx mailing list