Nginx Server : Desired Domain Name on Local Host

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


Hi,

On Sat, Jun 16, 2012 at 7:19 PM, Francis Daly <francis at daoine.org> 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'
>

Yes.


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


-- 
Thank You and Warm Regards,

Chetan Arvind Patil,
www.chetanpatil.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120616/1a98490e/attachment.html>


More information about the nginx mailing list