How can I run URLwithout using port?

Hello,

I have developed 2-3 sample ruby application…

and my server name is like http://www.mydomain.com

Now when I run one of my the ruby application say “first_app”,
then I have to use http://www.mydomain.com:3000/

And for the 2nd application I have shutdown the service for first one
and then have to start service for 2nd app.
And have to use same url http://www.mydomain.com:3000/

Any one can help me what should I do if I want to run the url like
http://www.mydomain.com/first_app

http://www.mydomain.com/second_app

Please help me… I really need this asap…

Thanks in Advance

Regards
Zangs D.

You can always assign the port to use… :3000 is just the default.

ruby script/server --port=3000 for the first app
ruby script/server --port=3001 for the next
etc, etc

Also, have a look at Rack, its a http hub for any app (rails or not)

On Jul 1, 7:27 am, Zangs D. [email protected] wrote:

Any one can help me what should I do if I want to run the url likehttp://www.mydomain.com/first_app
http://www.mydomain.com/second_app

You need to do virtual hosting for this. I suggest you look into
setting up Nginx (http://wiki.codemongers.com/Main) with some mongrel
clusters in the back.
Google has a ton of how-tos.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs