title: NGINX rewrite url if specific domain and specific url
body: <p>I need to rewrite url when users access specific domain with root (aka /) url.
  So far I have:</p>
  
  <pre><code>server {
    listen 80;
    server_name name1.com name2.com;
  
    location = / {
      # Well, I need this only for NAME2.COM (it should not rewrite NAME1.COM)
      rewrite name2.com/users/sign_in
    }
  }
  </code></pre>
  
  <p>How do rewrite only for NAME2.COM. Sometimes NGINX syntax makes my stack overflow. Please help.</p>