Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

Francis Daly francis at
Fri Jun 9 07:11:38 UTC 2017

On Thu, Jun 08, 2017 at 03:59:19AM -0400, iivan wrote:

Hi there,

> Here's the full configuration file:

That shows that the "if/rewrite" that you showed previously is within
"location / {}", and it rewrites to /index.cfm.

What part of your config shows how nginx should handle a request for

> It was working correctly before the upgrade to the latest version.

If you upgraded from a version that had some different defaults, that
might explain the difference.

(The config also suggests that you are using a third-party module;
perhaps that is involved in the change in observed behaviour.)

Francis Daly        francis at

More information about the nginx mailing list