mattt/rack-subdomain — pull request #4 by fuelxc (2013-05-21 23:22:25+00:00)
Title: Add ability to pass proc or regex

I added the ability to pass in a proc or a regex that works on the @env['HTTP_HOST'] for determining the domain rather than having to pass in a fixed string.

We use this so each env doesn't have to set the config.ru up or make any extra calls to a db or yaml. Also useful if the app responds to many domain names.