<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 5/31/2017 2:58 AM, iivan wrote:<br>
<blockquote type="cite"
cite="mid:a5d0fd362c21884b831b1d9a2c364d9e.NginxMailingListEnglish@forum.nginx.org">
<pre wrap="">I updated nginx to version 1.13.0
This rule that was working correctly right now makes me mistake in the
browser: ERR_TOO_MANY_REDIRECTS
if ($host ~* ^(.*)\.website\.com$) {
set $sub_domain $1;
rewrite ^/(.*)?$
/index.cfm?event=dashboard&lista=$sub_domain&nuovoURL=$1 last;
}</pre>
</blockquote>
<br>
<pre wrap="">ERR_TOO_MANY_REDIRECTS usually means that you have an infinite loop, which makes sense to me because you run this rule for every subdomain, including the rewritten one, causing the rewritten URL to be rewritten over and over again.
You need to rewrite it to a subdomain that would not match that rule.
</pre>
<br>
<div class="moz-signature">
<p>Igal Sapir
<br>
Lucee Core Developer
<br>
<a href="http://lucee.org/">Lucee.org</a></p>
</div>
</body>
</html>