Double Redirect

Francis Daly francis at
Sun Jun 19 23:14:44 UTC 2016

On Sun, Jun 19, 2016 at 05:12:27PM -0400, Lebod wrote:

Hi there,

> I'm having an issue with our site. We're trying to redirect all traffic of
> to
> Testing out our site, what happens is that redirects to
> which then redirects to
> We also get an error:
> nginx -t
> nginx: [warn] conflicting server name "" on, ignored

That suggests that there is another server{} block in, or included in,
your nginx.conf that you have not shown here.

> server {
>     listen 80;
>     listen 443 ssl;
>     server_name ***IP Address***;
>     return 301$request_uri;
> }

If redirects to, then that server{}
is not used for the request.

> I was wondering if there was an issue in our setup that's causing the double
> redirect and the error:
> nginx: [warn] conflicting server name "" on, ignored

nginx -T

might show you where the problem is.

Francis Daly        francis at

More information about the nginx mailing list