There is a question that has been eating away at the back of my mind regarding Rails -- how does one run multiple applications on the same webserver?
Suppose I have three applications:
Depot
CleverWikiName
NewBlogIdea
Normally, I could easily work on any of these three, simply by starting the WEBrick server that is neatly placed in the script directory after I generate the skeleton.
I would access them thusly, after starting their respective servers (one at a time, or on different ports:
http://.../depot
http://.../clever_wiki_name
http://.../new_blog_idea
and let the default route take them to public/index.html.
Now, the $1,000,000 question is:
How can I set up my (WEBrick, if possible) server so that I can have all three applications running at the same time, on the same port?
Further, how can I set up my WEBrick/Apache server so that I can have (say) a rails application in
http://.../depot
and a regular CGI ruby application in
http://.../hiki
Thanks!









Bookmarks