How to do a redirect to the desired site in nginx depending on the IP?

There are 2 website
www.exsample.com/ms/
www.exsample.com/nv/
how to make calls to www.exsample.com determined the user's IP address and if it falls into the IP range of the city then directed to the www.exsample.com/nv if this IP does not fall within the range of the city that opens www.exsample.com/ms/
server nginx
July 2nd 19 at 13:56
1 answer
July 2nd 19 at 13:58
Solution
Thank you - Osborn commented on July 2nd 19 at 14:01

Find more questions by tags Processing URLLinuxNginxDebian