Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

iivan nginx-forum at
Fri Jun 9 08:14:35 UTC 2017

Hi Francis,
to me there seems to be some bug... It's very weird that it worked first and
now it does not.

For example:

			set $sub_domain '';

			if ($host ~* ^(.*)\.salva\.link$) {
				set $sub_domain $1;

$sub_domain is always '0'. Can you confirm me?

Posted at Nginx Forum:,274541,274784#msg-274784

More information about the nginx mailing list