problem accessing virtual host from windows xp

problem accessing virtual host from windows xp

Post by linux_learne » Wed, 11 Apr 2007 05:31:01



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

 
 
 

problem accessing virtual host from windows xp

Post by Ian Northeas » Wed, 11 Apr 2007 08:35:04



> 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

 
 
 

problem accessing virtual host from windows xp

Post by Dave Uhrin » Wed, 11 Apr 2007 09:05:57




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

 
 
 

problem accessing virtual host from windows xp

Post by Ian Northeas » Wed, 11 Apr 2007 09:44:16





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

 
 
 

problem accessing virtual host from windows xp

Post by SadOldGi » Thu, 12 Apr 2007 09:24:37




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

 
 
 

problem accessing virtual host from windows xp

Post by SadOldGi » Thu, 12 Apr 2007 09:27:36





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

 
 
 

problem accessing virtual host from windows xp

Post by David Brow » Fri, 13 Apr 2007 03:27:19





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

1. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?

Hello.

Have been running 1.2b8 for a intranet and decided to move upto 1.3b2. I
have several name based virtual hosts that have been working under
1.2b8. After compiling and installing 1.3b2 my virtual hosts do not
work. In fact what happens is that even though DocumentRoot and default
server name is different, eg: www.serverA.net pointing to /www/default,
Apache 1.3b2 will always take me to the first defined virtual host as if
it's locked to it no matter what virtual host I try to browse. What
gives? Please post and E-Mail.

In /etc/hosts for my machines IP address I have

A.B.C.D         www.default.net www.virtA.net www.virtB.net

In ../conf/httpd.conf I have;

<VirtualHost www.virtA.net>

DocumentRoot /usr/local/www/virtA
ServerName www.virtA.net
ErrorLog logs/virtA.error.log
TransferLog logs/virtA.access.log
</VirtualHost>

<VirtualHost www.virtB.net>

DocumentRoot /usr/local/www/virtB
ServerName www.virtB.net
ErrorLog logs/virtB.error.log
TransferLog logs/virtB.access.log
</VirtualHost>

--

2. Posix threads on BSD?

3. Name Based Virtual Hosting - Unable to access Virtual domain from IE/Lynx

4. Questions

5. FrontPage virtual hosting, removal or reset of virtual host

6. Eliminating Multiple PPP Logins

7. : How to prevent one named virtual host from "seeing" another virtual hosts files ?

8. Undertanding a insecurity service

9. Mixing Apache Name Based Virtual Hosts and SSL Virtual Host

10. For Discussion: web virtual hosting vs mail virtual hosting

11. Is my virtual host problem with access rights or config?

12. alt.os.windows-xp hosting company

13. RH9 and XP - Can't access RH frm XP Network Neighborhood