title: Nginx - Proxying POST requests for the given conditions
body: <p>For all POST requests to nginx. </p>
  
  <p>We want to proxy_pass to upstream server1:8000 when POST request contain test=1 </p>
  
  <p>or proxy pass to upstream server2:8080 when POST requests contains test=0 </p>
  
  <p>How to configure the above. </p>
  
  <p>Thanks,</p>
  
  <p>M. G.</p>