Re: problem accessing virtual host from windows xp



On Mon, 09 Apr 2007 19:05:57 -0500, Dave Uhring wrote:

On Tue, 10 Apr 2007 00:35:04 +0100, Ian Northeast wrote:

On Mon, 09 Apr 2007 13:31:01 -0700, linux_learner wrote:

i have apache running on my fedora machine. i have created virtual
hosts on that and i am able to access various websites hosted on
different virtual host from local machine. i have added these names to
/etc/hosts files in linux.
the ip address of linux is 192.168.0.3 and that of windows xp is
192.168.1

now the problem is that when i try to browse these sites from my xp
using ipaddress 192.68.0.3 in ie browser, i get the following error.
Cannot find server or DNS

If you are determined, for whatever reason, not to use DNS then put your
virtual host names into the Windows hosts file. I can't remember where
it is and as this is a Linux group I can't be bothered to start up a
Windows machine just to find it. I'm sure you'll be able to.

IIRC the Windows hosts file is C:\windows\system32\drivers\etc\hosts And I
don't think that the OP will even be able to see that because the default
Windows *hides* such system files.

I don't even have a Windows machine to confirm that.

I think you are correct about the pathname. I couldn't remember that lot:)
I'm not sure about the hiding as one of the first things I do whenever I
have the "pleasure" of administering a Windows machine is to turn off this
"facility". But I don't think it hides files with no extension.

A little gotcha, in early Windows versions at least, is that
the file does not exist by default. Instead is a sample file called
"hosts.sam". Which causes merry hell on a machine with Lotus SmartSuite
installed, which uses ".sam" as an extension.

But this is a Linux group, so we don't have to worry about these foibles.

Regards, Ian

.



Relevant Pages

  • Re: WindowsUpdate_80244019 Help
    ... On windows XP you can start updating from the microsoft's website, ... Is that entry in HOSTS, ... MowGreen [MVP 2003-2009] ... Scroll down to Win HTTP Web Proxy Auto-Discovery Service ...
    (microsoft.public.windowsupdate)
  • Re: Hosts file/NAV cannot repair
    ... I am now receiving, both in Safe Mode and regular, a low memory ... windows is changing page faults. ... >> attempted to edit the hosts file, ... > scan with HijackThis. ...
    (microsoft.public.security)
  • Re: 0x80072EE7
    ... Point the DNS Resolution to 4.2.2.2 ... Is the Windows firewall sufficient to replace Norton AV and Counterspy? ... I have Norton Antivirus and Online Security. ... When I looked in the Hosts file as suggested in one resolution, ...
    (microsoft.public.windowsupdate)
  • Re: WindowsUpdate_80244019 Help
    ... we'll recommend a tool that will install the latest Windows Update Agent and reset automatic updates [aka Windows Update in Vista]. ... The HOSTS.sam file has been overwritten with a backup of the HOSTS file on my system so I can't see if that entry is unusual or atypical, but it should have no bearing as to any of the MS update servers. ...
    (microsoft.public.windowsupdate)
  • Re: "...your hosts file has been hacked."
    ... to be repaired and a substitute hosts file to delete, ... Microsoft MVP for Windows Security ... > This popped up yesterday when I try to google or msn.com. ... of programs to edit the file with. ...
    (microsoft.public.windowsxp.security_admin)