How to create virtual domain name for RoR application?

Hi,

I have a application for our internal office use. Platform is Ubuntu
9.04 sever edition. with Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /home/infinity1/OBS
Environment development
Database adapter mysql
Database schema version 0

Now suppose my IP(local) number is 192.168.0.3. how can I create a
virtual name for the application ? so that I can use www.example.com
rather http://192.168.03:3000/login_c.

Please help me regarding this. Thanks in advance.

On Tue, Jul 6, 2010 at 12:56 AM, sumanta [email protected]
wrote:

Now suppose my IP(local) number is 192.168.0.3. how can I create a
virtual name for the application ? so that I can use www.example.com
rather http://192.168.03:3000/login_c.

This has nothing to do with Rails; your local DNS needs a record for
the server, with whatever name(s) you choose.


Hassan S. ------------------------ [email protected]
twitter: @hassan

Hassan S. wrote:
On Tue, Jul 6, 2010 at 12:56 AM, sumanta <[email protected]> 
wrote:
  
Now suppose my IP(local) number is 192.168.0.3. how can 
I create a
virtual name for the application ? so that I can use www.example.com
rather http://192.168.03:3000/login_c.
    
This has nothing to do with Rails; your local DNS needs a record for
the server, with whatever name(s) you choose.
  
Or for a very small setup where you may not have a dns server (like in my den) I just put entries in /etc/hosts on all of the  systems.  It helps to configure your dhcp server (if you use one) to use fixed addresses for the server machine.



You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.

To post to this group, send email to
[email protected].

To unsubscribe from this group, send email to
[email protected].

For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Norm S. wrote:

[Please stop sending HTML e-mail to the list.]

[…]

Or for a very
small setup where you may not have a dns server (like in my den) I just
put entries in /etc/hosts on all of the systems.

No! Do it right: set up DNS entries on your router/hub/switch/whatever
you connect to.

It helps to
configure your dhcp server (if you use one) to use fixed addresses for
the server machine.

Indeed.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]