Open your /etc/hosts file in Linux. Windows is the same hosts file under some other directory. Any how puts the next line in the file 127.0.0.1 example.com Then if you "ping example.com" IP 127.0.0.1 will respond. now you can use example.com:3000 to access your web site. If you are not happy with your 3000 port then change Rails default http port setting. I don't know how to change this port number.
On Mon, Apr 18, 2011 at 5:51 AM, amrit pal pathak <amritpalpath...@gmail.com > wrote: > I am new to ruby on rails and running rails 2.3.5.My application is > running at localhost:3000 ,but i want it should be run at > "example.com" in brower when i start the serve normally as "script/ > server" . > What to do? > > Thanks > > -- > 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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.