<p dir="ltr">On 19 Aug 2013 07:05, "ronin" <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br>
><br>
> I am using the statement is:<br>
> if ($ host! = <a href="http://www.mj.com">www.mj.com</a>|<a href="http://ci.mj.com">ci.mj.com</a>) {rewrite ^ / (. *) $ <a href="http://www.mj.com/">http://www.mj.com/</a><br>
> $ 1 permanent;}<br>
> This page contains a redirect loop occurs causing the problem can not access<br>
> the site, I ask you how to handle this statement to be compatible with<br>
> multiple subdomains, thank you</p>
<p dir="ltr">Use a separate server{} for the redirection-only vhosts.</p>
<p dir="ltr">J</p>