Fix multiple redirections in rewrite rule in nginx

In the nginx config, setting www.mysite.com and site.com as server_name creates a redirection loop in the browser as the rule redirects to www.mysite.com