Nginx Server : Desired Domain Name on Local Host

Francis Daly francis at
Sat Jun 16 17:31:58 UTC 2012

On Sat, Jun 16, 2012 at 08:54:00PM +0530, Chetan Patil wrote:
> On Sat, Jun 16, 2012 at 7:19 PM, Francis Daly <francis at> wrote:

Hi there,

> > 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 ?

Probably not. This is a *client* configuration, not an nginx one.

You will need that all clients (= browsers) know how to turn whatever
server name you want to use, into whatever IP address your server has.

Usually DNS takes care of this.

/etc/hosts is a useful temporary local setting until DNS records are
set up properly.

Francis Daly        francis at

More information about the nginx mailing list