Welcome! Log In Create A New Profile

Advanced

Re: Sub-domain filtering

Jonathan Matthews
August 19, 2013 03:14AM
On 19 Aug 2013 07:05, "ronin" <nginx-forum@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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Sub-domain filtering

ronin August 19, 2013 02:04AM

Re: Sub-domain filtering

Jonathan Matthews August 19, 2013 03:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 171
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready