Browse local websites (Win4Lin on Ubuntu)

0 views
Skip to first unread message

Dirk

unread,
May 14, 2009, 3:25:30 AM5/14/09
to win4lin-users
Hi,

I was wondering how I could browse my websites I have running on my
Linux machine in the IE browser running on Windows XP in Win4Lin.

Is that at all possible? I added the local URL to the hosts files in
Windows but that doesn't seem to work.

Thanks,
Dirk

JayTee

unread,
May 27, 2009, 9:47:07 PM5/27/09
to win4lin-users
On May 14, 3:25 am, Dirk <dhemeli...@gmail.com> wrote:
> Is that at all possible? I added the local URL to the hosts files in
> Windows but that doesn't seem to work.
>

On mine, the host IP is 10.0.2.4

In c:\windows\system32\drivers\etc\hosts file:

10.0.2.4 host

I have apache running vhosts in my host os (Ubuntu 9.04). I set up
the virtual hosts with addresses like this:

www.ci.localhost (local CodeIgniter install)

So...

I added a line in my windows hosts file like so:
10.0.2.4 www.ci.localhost

If I open IE and browse to http://www.ci.localhost, I get the host OS
website :) very handy for testing web applications in both Linux and
Windows
Reply all
Reply to author
Forward
0 new messages