Nginx Server : Desired Domain Name on Local Host

Francis Daly francis at daoine.org
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 daoine.org> wrote:

Hi there,

> > adding a line
> >
> >  127.0.0.1  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.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list