Viewing multiple domains hosted via vhost on other computers

I followed this excellent screencast on setting up Phusion Passenger and all was running well. I can now develop multiple Rails apps simultaneously without starting/stopping my WebBrick server, which I love. But how to view these apps from my networked PC’s? All it took was an entry in the hosts file, which is here by default on both XP and Vista:

%SystemRoot%\system32\drivers\etc\

Thanks, Wikipedia! Now, on both my development machine and my others, I can use addresses like app.local to see work in progress.

One additional point: in your Rails apps, puts will write to your Apache error log, which may be located here: /var/log/apache2/error_log.

Discussion Area - Leave a Comment