map 'http://example1.com' do
run MyApp::Example1
end
map 'http://example2.com' do
run MyApp::Example2
end
if SERVER_NAME == 'example1.com'
map '/' do
run MyApp::Example1
end
end
Thanks for the quick answer. This definitely works.
Our of curiosity, is it possible to see the host and other request information in config.ru?