Nginx 301 + 2 domains?
<p>I am trying to configure nginx to respond to two domains: <code>domain1.com</code> &amp; <code>domain2.com</code> yet if someone tries to access <code>domain2.com</code> he will 301 redirected to <code>domain1.com</code> (with the full request params), how can I do that? i am getting redirect loops all the time.</p>