Accessing Apache virtual hosts on Linux machine (B) from ...

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
webman
Forum Newbie
Posts: 13
Joined: Thu May 27, 2010 8:20 am

Accessing Apache virtual hosts on Linux machine (B) from ...

Post by webman »

Here is the setup:

Machine A:
Windows XP Home edition

Machine B:
OpenSUSE Linux (latest) with Apache web server (latest) installed.

Cables go from a router to Machine A and Machine B.

Machine A's ip is 192.168.2.100
Machine B's ip is 192.168.2.102

I have configured virtual hosts inside machine B. I have also edited the linux hosts file. The servers work fine if accessed from the Linux itself.

My question is how to access the different Virtual hosts on the Linux machine (B) from the web browsers at the Windows machine (A). If I type 192.168.2.102 I go to the files of the first configured virtual host on machine (B). But how to access the files of the other virtual hosts there ?!

What do I need to do ?! Thanks in advance.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Accessing Apache virtual hosts on Linux machine (B) from

Post by VladSun »

Edit the Windows hosts file:
[text]%SystemRoot%\system32\drivers\etc\hosts[/text]
There are 10 types of people in this world, those who understand binary and those who don't
webman
Forum Newbie
Posts: 13
Joined: Thu May 27, 2010 8:20 am

Re: Accessing Apache virtual hosts on Linux machine (B) from

Post by webman »

Thanks! it worked.
Post Reply