D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] /etc/hosts

 

On 06/09/12 13:24, Martijn Grooten wrote:
On Thu, Sep 6, 2012 at 1:17 PM, Gibbs wrote:
There is some configuration involved if the server
uses virtual hosts though.
Really? Not my experience. In fact, if the server doesn't use virtual
hosts, you may visit the website by entering the server's IP address
and forget about the hosts file altogether.

I should have added to my previous email that it's best to apply
caution when using /etc/hosts for non-local IP addresses. I've seen
several cases where someone (me, for instance) had made a change there
which caused problems later on, long after the change was needed, when
no one thought of the hosts file any more.

Martijn.
I mean if the server /has/ virtual hosts (multiple domains). If it does and you haven't configured Apache, for example, it will just resolve to the default website.

Gibbs

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq