Networking Forums

Networking Forums > Computer Networking > Linux Networking > problem accessing virtual host from windows xp

Reply
Thread Tools Display Modes

problem accessing virtual host from windows xp

 
 
linux_learner
Guest
Posts: n/a

 
      04-09-2007, 08:31 PM
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


can someone please help to access these sites from xp without using
dns


thanx in advance

 
Reply With Quote
 
 
 
 
Ian Northeast
Guest
Posts: n/a

 
      04-09-2007, 11:35 PM
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
>
>
> can someone please help to access these sites from xp without using dns


Name based virtual hosts are designed to be used with 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.

It would be better to use DNS though. Why don't you want to?

Regards, Ian
 
Reply With Quote
 
Dave Uhring
Guest
Posts: n/a

 
      04-10-2007, 12:05 AM
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.

 
Reply With Quote
 
Ian Northeast
Guest
Posts: n/a

 
      04-10-2007, 12:44 AM
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

 
Reply With Quote
 
SadOldGit
Guest
Posts: n/a

 
      04-11-2007, 12:24 AM
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
>>
>>
>> can someone please help to access these sites from xp without using dns

>
> Name based virtual hosts are designed to be used with 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.
>
> It would be better to use DNS though. Why don't you want to?
>
> Regards, Ian

It's just exactly where you would trust Uncle Bill to put it:
C:\Windoze(or WinNT)\System32\drivers\etc\

Hmmm strange how it ends up in a directory called \etc
 
Reply With Quote
 
SadOldGit
Guest
Posts: n/a

 
      04-11-2007, 12:27 AM
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.
>

Yes, Dave, but if the OP has a single clue he/she should be able to open
and edit that file using the wretched Notepad.exe thing!

Steve
 
Reply With Quote
 
David Brown
Guest
Posts: n/a

 
      04-11-2007, 06:27 PM
SadOldGit wrote:
> 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
>>>
>>>
>>> can someone please help to access these sites from xp without using dns

>> Name based virtual hosts are designed to be used with 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.
>>
>> It would be better to use DNS though. Why don't you want to?
>>
>> Regards, Ian

> It's just exactly where you would trust Uncle Bill to put it:
> C:\Windoze(or WinNT)\System32\drivers\etc\
>
> Hmmm strange how it ends up in a directory called \etc


It's not that strange - remember, NT originally used the TCP/IP stack
from BSD.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2K3 and Virtual Server 2005 guests NAT problem lazylland@gmail.com Windows Networking 5 04-25-2007 04:57 AM
name based virtual host query.cdac@gmail.com Linux Networking 2 04-18-2007 12:04 PM
problem: windows server 2003 not sharing/accepting network host names from windows xp Samuel Proulx Windows Networking 2 07-20-2006 11:40 AM
Virtual host question Ron Abramson Linux Networking 5 11-22-2004 01:43 PM
CSS displayed as text for virtual host pragmatist Linux Networking 1 07-28-2004 05:55 PM



1 2 3 4 5 6 7 8 9 10 11