Possible Duplicate:
How to specify a web address to a rails application?
I want to boot 2 Rails on my machine. I can do this way:
rails s -p 3000
rails s -p 3001
And access them through localhost:3000
and localhost:3001
.
But is there any way to boot them on foo.example.com
and bar.example.com
? I don't really own the domain name example.com
, and I just want my local programs to access them through this fake domain name instead of localhost.