Nginx server_name command being ignored

Francis Daly francis at
Fri Dec 14 13:13:44 UTC 2012

On Fri, Dec 14, 2012 at 08:01:33AM -0500, constable1 wrote:

Hi there,

> I am able to access the server by going to the IP address of the
> server or by going to the server's name (http://ubuntuserver/) but
> http://test/ will give me nothing, no connection, not even an error page.

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.

If that is the case, make the name resolvable -- put it in DNS or
/etc/hosts, for example -- and retry the curl command.

If it does not show what you expect, describe that output too.

Francis Daly        francis at

More information about the nginx mailing list