Use a web server such as Apache , which runs on port 80 and uses virtual hosts to direct traffic to the correct application server. Thus, basically you will start each application server (berth / mongrel, etc.) on a different port, and then in each virtual host it will have a different configuration to use something like a mod proxy to redirect traffic to the application server . You can use another web server, for example lighttpd or nginx . For the sinatra app, you can also watch Phusion Passenger, as well as fashion rails as well as a modular rack, which theoretically works with any application in the rack, although I used only Rails.
, , -, , - 80, , .