Veerasundaravel's Ruby on Rails Weblog

November 13, 2011

Localhost alternates for subdomain

Filed under: Ruby On Rails — Tags: , , , , , , , , — Veerasundaravel @ 2:04 am

Most of we Rails developers, used to check our Rails app using http://localhost:3000/. But this particular url have the  following issues.

1. We can’t add/check subdomain with localhost like http://company1.localhost:3000/

2. Some of external API will not work when we are using localhost.

3. More over using system hostname for subdomain also requires too much configuration in host files.

Best way to solve this: and provides good option of using localhost with subdomain etc. The two domains are pointed to localhost only. If we go to we’ll see the homepage of our application because resolves to the IP address

Checkout all the below urls. all will open your application homepage.

Related Articles:

tbaggery – Smack a
ASCIIcasts – Subdomain in Rails3

The Silver is the New Black Theme. Create a free website or blog at


Get every new post delivered to your Inbox.

Join 124 other followers

%d bloggers like this: