title: local Rails with domain name?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13276118/how-to-specify-a-web-address-to-a-rails-application">How to specify a web address to a rails application?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to boot 2 Rails on my machine. I can do this way:</p>
  
  <pre><code>rails s -p 3000
  rails s -p 3001
  </code></pre>
  
  <p>And access them through <code>localhost:3000</code> and <code>localhost:3001</code>. </p>
  
  <p>But is there any way to boot them on <code>foo.example.com</code> and <code>bar.example.com</code>? I don't really own the domain name <code>example.com</code>, and I just want my local programs to access them through this fake domain name instead of localhost.</p>