title: How can I rewrite this nginx "if" statement?
body: <p>For example, I want to do this: </p>
  
  <pre><code>if ($http_user_agent ~ "MSIE 6.0" || $http_user_agent ~ "MSIE 7.0" (etc, etc)) {
      rewrite ^ ${ROOT_ROOT}ancient/ last;
     break;
  }
  </code></pre>
  
  <p>instead of this: </p>
  
  <pre><code>if ($http_user_agent ~ "MSIE 6.0") {
      rewrite ^ ${ROOT_ROOT}ancient/ last;
     break;
  }
  if ($http_user_agent ~ "MSIE 7.0") {
      rewrite ^ ${ROOT_ROOT}ancient/ last;
     break;
  }
  </code></pre>
  
  <p>Nginx rejects this syntax (minus the (etc, etc)), and I don't see anything in the docs about this. Thanks in advance.</p>
  
  <p>Also, we opted not to use $ancient_browser directive, so that's not an option.</p>