Nginx server_name command being ignored

Francis Daly francis at
Fri Dec 14 13:32:21 UTC 2012

On Fri, Dec 14, 2012 at 01:13:44PM +0000, Francis Daly wrote:
> On Fri, Dec 14, 2012 at 08:01:33AM -0500, constable1 wrote:

Hi there,

> What is the output of
>   curl -i http://test/
> ?
> My guess is that your browser fails to resolve the name to the correct
> address, and so never talks to nginx in the first place.

Oh, if that is the case, then you can still test the nginx side without
fixing name resolution by looking at the output of

  curl -i -H Host:test

and confirming that it is what you expect.

Francis Daly        francis at

More information about the nginx mailing list