Sub-domain filtering
Jonathan Matthews
contact at jpluscplusm.com
Mon Aug 19 07:13:09 UTC 2013
On 19 Aug 2013 07:05, "ronin" <nginx-forum at nginx.us> wrote:
>
> I am using the statement is:
> if ($ host! = www.mj.com|ci.mj.com) {rewrite ^ / (. *) $
http://www.mj.com/
> $ 1 permanent;}
> This page contains a redirect loop occurs causing the problem can not
access
> the site, I ask you how to handle this statement to be compatible with
> multiple subdomains, thank you
Use a separate server{} for the redirection-only vhosts.
J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130819/c52e9b59/attachment.html>
More information about the nginx
mailing list