title: Setting up host file to redirect foo.com to localhost:3000
body: <p>I'm trying to test out some Facebook features on my rails application and I would like to use a host file to redirect my <code>foo.com</code> to <code>localhost:3000</code> when developing.</p>
  
  <p>Here's what I've added to my <code>private/etc/hosts</code> file:</p>
  
  <pre><code>127.0.0.1:3000 foo.com
  </code></pre>
  
  <p>Then I flushed my DNS cache:</p>
  
  <pre><code>dscacheutil -flushcache
  </code></pre>
  
  <p>Yet I still can't access my local rails application using <code>foo.com</code>. Any suggestions?</p>