<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;p&gt;Eww, Windows?&lt;/p&gt;
&lt;p&gt;Yeah, I said it.&amp;nbsp; As we all know, there's a million and one schmucks out there still rockin' Internet Explorer as their default browser.&amp;nbsp; That means if you want that spreadsheet-in-the-cloud app you've been working on to hit critical mass, you better test it in IE.&lt;/p&gt;
&lt;p&gt;If you're like me, then you've recently started running some or all of your apps locally via &lt;a title="The Passenger Homepage" href="http://www.modrails.com/" target="_blank"&gt;Passenger&lt;/a&gt;.&amp;nbsp; This can cause a bit of a problem when it comes time to test in IE.&amp;nbsp; At least, it did for me anyway.&lt;/p&gt;
&lt;p&gt;I use &lt;a title="Parallels Desktop for Mac" href="http://www.parallels.com/products/desktop/" target="_blank"&gt;Parallels&lt;/a&gt; for my Windows testing, and an old version at that.&amp;nbsp; From what I hear, &lt;a title="VMWare Fusion - Mac Desktop Virtualization" href="http://www.vmware.com/products/fusion/" target="_blank"&gt;VMWare&lt;/a&gt; is better, but I'm too cheap to buy it and I just don't really care that much.&amp;nbsp; Prior to using Passenger locally, I would just point IE at my mac's IP address, port 3000, and everything was kosher.&amp;nbsp; Well, with Passenger, that no worky.&lt;/p&gt;
&lt;p&gt;Now, I'm sure there's probably a way to configure Parallels to allow me to test a Passenger app, but from what I can tell that either requires an updated version of Parallels or more time Googling than I'm willing to spend.&lt;/p&gt;
&lt;p&gt;I knew that I could access my local Apach instance from any machine on my home network, so I figured there's got to be a way to hit my Passenger apps since they're running under that same Apach instance.&amp;nbsp; With a little help from a fellow &lt;a title="Dave's Intridea profile" href="http://www.intridea.com/about/people/naffis" target="_blank"&gt;Intridean&lt;/a&gt;, I got it working.&lt;/p&gt;
&lt;p&gt;Here's what you do:&lt;/p&gt;
&lt;p&gt;1. Set your app up in Passenger, like you normally would.&amp;nbsp; I use the pref pane.&lt;/p&gt;
&lt;p&gt;&lt;a title="Passenger Pref Pane" href="http://s3.amazonaws.com/brentmc79-prod/files/17/original.png?1256675869"&gt;&lt;img style="margin-top: 5px; margin-bottom: 5px;" src="http://s3.amazonaws.com/brentmc79-prod/files/17/medium.png?1256675869" alt="passengerpane.png" width="300" height="223" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. Determine you mac's IP address.&amp;nbsp; An easy way is to look in the sharing section of the System Preferences.&lt;/p&gt;
&lt;p&gt;&lt;a title="Sharing Pref Pane" href="http://s3.amazonaws.com/brentmc79-prod/files/18/original.png?1256676029"&gt;&lt;img style="margin-top: 5px; margin-bottom: 5px;" src="http://s3.amazonaws.com/brentmc79-prod/files/18/medium.png?1256676029" alt="sharingprefpane.png" width="300" height="247" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3. On your Windows machine, add an entry to the hosts file with your mac's IP address and the app's domain (local) domain name.&amp;nbsp; The host file is in C:\WINDOWS\system32\drivers\etc.&lt;/p&gt;
&lt;p&gt;&lt;a title="Windows Host File" href="http://s3.amazonaws.com/brentmc79-prod/files/19/original.png?1256676196"&gt;&lt;img style="margin-top: 5px; margin-bottom: 5px;" src="http://s3.amazonaws.com/brentmc79-prod/files/19/medium.png?1256676196" alt="hostsfile.png" width="300" height="196" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That's it!&amp;nbsp; Point IE at http://yourapp.local and you should be golden.&amp;nbsp; This will work for subdomains also, assuming you've added the *.yourapp.local alias to you Passenger conf.&lt;/p&gt;</body>
  <created-at type="datetime">2009-10-27T20:59:36Z</created-at>
  <description>How to test your Rails app running on Passenger from Internet Explorer and Windows.  It's not as hard as you might think...</description>
  <id type="integer">36</id>
  <keywords>rails, passenger, mod_rails, windows, internet explorer</keywords>
  <published type="boolean">true</published>
  <slug>access-your-passenger-app-from-windows</slug>
  <title>Access Your Passenger App From Windows</title>
  <updated-at type="datetime">2009-10-27T21:03:24Z</updated-at>
</post>
