Fix nginx.conf with ERR_TOO_MANY_REDIRECTS