redirect to another domain based on IP address

ender ulusoy enderulusoy at
Mon May 6 09:10:26 UTC 2019

Hi Folks,

We have a website under heavily development. So we divide the site to 3
branches stage, demo and main. What our developers want from me is : "every
request from office ip address to main domain must redirect to stage."

For an example if a developer makes a request to then simply
it'll redirect all requests to if the request send from
office ip address. How can achieve that?

Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list