Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a rails app setup and running on my snow leopard MacBook - the app is being served by Passenger. As part of the setup they had me add entries for 127.0.0.1 site.project.rails in my hosts file so I could reach the site from site.project.rails

I can't for the life of me figure out how to get the app show up in VMWare. I have XP setup and browse to http://site.project.rails and I can't get it to show up.

I setup a basic rails app, being served at localhost:3000 by webrick, I can get that to load by visiting my hosts ip (http://192.168.1.1:3000/). I added the same hosts I added on my Mac to Windows.

I also Bridged the network under settings for the VM. What am I missing?

share|improve this question
    
What happens when you try to ping site.project.rails from the VM? Do you get an IP address or does it not resolve the host? –  Scott Warren Jan 7 '11 at 13:23

1 Answer 1

/etc/hosts is local to that machine only, which would be on the macbook.

Try using the IP address of the macbook on the vmware client

share|improve this answer
    
I edited the hosts file in Windows too. I won't reach the app I wan't if I hit the host IP - the app runs at the location site.project.rails (added vhosts and entries to /etc/hosts to support this) –  Johnny Mnemonic Jan 15 '10 at 3:56
    
The instructions you followed assumed you access the site from the same machine running the site. Since this is not the case, either put the Macbook's IP address in /etc/hosts (and the windows version of that file) or use the IP address. –  Michael Graff Jan 15 '10 at 4:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.