proxy pass based on IP??

Igor Sysoev is at
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;  two;  two;

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

Igor Sysoev

More information about the nginx mailing list