Nginx Server : Desired Domain Name on Local Host

Chetan Patil chtpatil at
Sat Jun 16 15:24:00 UTC 2012


On Sat, Jun 16, 2012 at 7:19 PM, Francis Daly <francis at> wrote:

> Browsers tend to hide the actual error message behind a "friendly" one.
> What does
>  curl -i http://test:80/
> show?
> I suspect it will be something along the lines of
>  Couldn't resolve host 'test'


> The best way is to set up name resolution such that your browser knows
> that the name "test" corresponds to your nginx server. In the common case,
> adding a line
>  test
> to /etc/hosts will make it all Just Work for all browsers on the system.

It worked. Thanks.

So, same configuration has to be done while moving to Linux hosted server ?

Thank You and Warm Regards,

Chetan Arvind Patil,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list