title: nginx.conf redirect multiple conditions
body: <p>I want to redirect requests on two conditions using Nginx.</p>
  <p>This doesn't work:</p>
  <pre><code>  if ($host = 'domain.example' || $host = 'domain2.example'){
      rewrite ^/(.*)$ http://www.domain.example/$1 permanent;
    }
  </code></pre>
  <p>What is the correct way to do this?</p>