Is there a way to emulate Squid's redirector interface in reverse proxy
Igor Sysoev
is at rambler-co.ru
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
>
> http://wiki.squid-cache.org/SquidFaq/SquidRedirectors
>
> 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
http://sysoev.ru/en/
More information about the nginx
mailing list