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.

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

Hassan Schroeder 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 rather .
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.

Norm Scherer wrote:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
</head>

[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,