substitution of someaddress.com on local desktop computer

Posted by dev on Stack Overflow See other posts from Stack Overflow or by dev
Published on 2010-04-09T18:20:22Z Indexed on 2010/04/09 18:23 UTC
Read the original article Hit count: 545

Filed under:
|
|

Here is VDS server with ip(for example 105.123.123.123) with working apache service. And there is a desktop computer with linux on board(but really I presume there is no difference). I need to type on web browser address like someaddress.com and to see website situated at my server. My /etc/hosts:

127.0.0.1       localhost
105.123.123.123  someaddress.com
105.123.123.123 www.someaddress.com

But it doesn't work. I see real someaddress.com website. What can be wrong. It will be great if you help me with that.

P.S. Why I need this. There is one project with fixed links(like someaddress.com/inf). And I need to test it.

© Stack Overflow or respective owner

Related posts about linux

Related posts about hosts