3
Here's my setup:
I'm developing a website on a mac. I created a virtual host, so I can open up my browser, type http://cpp
and it will point to the right directory.
I want to test this website out in IE. So I fired up Windows 7 in a vm (Virtual Box). Obviously, typing in http://cpp
in IE will not work.
What do I need to do in order to view this virtual host from Windows 7?
NOTE: The fact that it is a virtual host is important. I have scripts in there that refer to the document root. That is, the site is hosted at ~/Sites/cpp
, but typing in http://localhost/cpp
will break my scripts.
Here's the output from ipconfig
:
Here's the screenshot of my network settings:
1Did you try adding an entry to your Windows hosts file that points cpp to the host's IP, and is the host visible from inside the VM (i.e. did you bridge the networks?)? – None – 2012-07-22T05:47:35.487
The network is bridged. I know how to add the host such that cpp maps to 10.0.2.2 but how to I get it to access the vhost? – jessh – 2012-07-22T05:51:19.430
Well, if you did it all correctly, you should be able to go to
http://cpp
(orhttp://cpp.local
) from Internet Explorer. – None – 2012-07-22T05:56:13.323Still not working out. Would you mind taking a look at the output of my ifconfig and the network settings? : https://www.dropbox.com/sh/t78qg1y2jgfoe3g/UwAOF8CsPu
– jessh – 2012-07-22T07:10:30.703Can you add a screenshot of the
hosts
file from Windows, please? – None – 2012-07-22T17:58:47.920This is the screenshot of the hosts file from windows. – jessh – 2012-07-23T02:17:09.370