title: Nginx - Different proxy pass based on IP ranges
body: <p>I've got a case where I need to do a different proxy pass in Nginx depending on which CIDR the client's IP address is part of.</p>
  
  <p>So, for example, let's say I have the following CIDRs:</p>
  
  <pre><code>  10.50.0.0/16
    10.51.0.0/16
    10.52.0.0/16
  </code></pre>
  
  <p>Each of those client addresses needs to have a different proxy_pass in Nginx. How would I go about doing this? I'm very new to Nginx so achieving things like this are still a bit confusing.</p>