Nginx rule for subdomains: ERR_TOO_MANY_REDIRECTS

iivan nginx-forum at
Wed May 31 09:58:43 UTC 2017

I updated nginx to version 1.13.0

This rule that was working correctly right now makes me mistake in the

if ($host ~* ^(.*)\.website\.com$) {

        set $sub_domain $1;
        rewrite ^/(.*)?$
/index.cfm?event=dashboard&lista=$sub_domain&nuovoURL=$1 last;


Thank you in advance for your help!

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

More information about the nginx mailing list