May 29, 2009

OSX + Apache + Passenger + VMWare Fusion

I have Apache + Passenger setup on OSX and with the Passenger Preference Pane, you can browse your apps locally on URLs like myapp.local

The problem is these apps aren’t easily browsable from a VM. If you use the IP of the host you’ll just get a single site.

I found that I could use the same local URLs if I simply added the URLs to the Windows hosts file inĀ C:\WINDOWS\system32\drivers\etc

I just added the entries to the file, as such:

127.0.0.1 localhost
my.host.ip myapp.local
my.host.ip myotherapp.local