proxy pass based on IP??

Igor Sysoev is at rambler-co.ru
Thu Oct 29 10:01:52 MSK 2009


On Thu, Oct 29, 2009 at 12:16:02AM +0200, Iantcho Vassilev wrote:

> Is it possible to proxy pass a location based in source IP??

There is a limited solution:

map $remote_addr  $backend {
     default      one;
     192.168.1.1  two;
     192.168.1.2  two;
}

    location / {
        proxy_pass  htttp://$backend$request_uri;
    }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list