Is it possible to detect the incoming request's domain name (host) in config.ru? I'm trying to use URLMap to map different domains to different apps, all running on the same IP. Theoretically, I'm trying to achieve this effect: map 'http://example1.com' do > run MyApp::Example1 > end map 'http://example2.com' do > run MyApp::Example2 > end For example, if it was possible to read rack's SERVER_NAME in config.ru, I would do something like: if SERVER_NAME == 'example1.com' > map '/' do > run MyApp::Example1 > end > end