title: How to proxy pass to a certain url depends on the request url by nginx?
body: <p>I have two hello servers in server1(1.1.1.1) and server2(1.1.1.2). Now I want to use Nginx(example.com) to proxy pass request to the certain server like this:</p>
  
  <p>Request Url:<a href="http://example.com/hello1" rel="nofollow noreferrer">http://example.com/hello1</a>
  proxy pass:<a href="http://1.1.1.1/hello" rel="nofollow noreferrer">http://1.1.1.1/hello</a></p>
  
  <p>Reqeust Url:<a href="http://example.com/hello2" rel="nofollow noreferrer">http://example.com/hello2</a>
  proxy pass:<a href="http://1.1.1.2/hello" rel="nofollow noreferrer">http://1.1.1.2/hello</a></p>