location ~ /android/3/[0-9]+/recommend {
if ($remote_addr ~* "123.101.200.21"){
proxy_pass http://testServer;
}
proxy_pass http://releaseServer;
}
Hi,
This location
directive translates into a regex path
, in Kong, as documented in the Proxy Guide section about them. However, routing by client IP address is not supported out of the box, so you would have to write a custom plugin for this.
Best,
1 Like