tylerhunt/rack-canonical-host — pull request #11 by firedev (2012-10-13 14:12:24+00:00)
Title: New :if parameter

If you want it to react on only specific host for multi-domain environment use `:if`.
It accepts string, regexp or an array.

``` ruby
use Rack::CanonicalHost, 'example.com', if: /.*\.example\.com/
use Rack::CanonicalHost, 'example.ru', if: /.*\.example\.ru/
```

Plus some refactoring for :ignore - now you can pass the string as well.