RubyGems.org

Rack::DomainRedirect is a tiny rack middleware for redirecting to the configurable domain. If user request's the service from domain other than that configured it redirects to the first domain on the configuration list. If no domain is configured it does noting and passes requests to another application in the chain.

installgem install rack-domain_redirect
Authors

Michal Pawlowski

1,569 total downloads 1,569 for this version
Owners

13fbe3372c9c7c60029cc76a150aad82

Gemfile
gem 'rack-domain_redirect', '~> 0.1.1'
Versions
  1. 0.1.1 January 14, 2010 (6.5 KB)
Runtime Dependencies
  1. rack >= 1.1
Development Dependencies
  1. rack-test >= 0.5
  2. shoulda >= 2