Sha256: f81da3c44493b70642d65cb8688fb4cd28177fd02e3358c574b6f4ecacd85c2d
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 Bytes
Contents
# rack-subdomain Rack middleware to transparently route requests with a subdomain to a specified path with substitutions. ## Usage ### Gemfile ``` ruby gem 'rack-subdomain' ``` ### config.ru ``` ruby # Simple Example use Rack::Subdomain, "example.com", to: "/users/:subdomain" # Complex Example use Rack::Subdomain, "example.com", except: ['', 'www', 'secure'] do map 'downloads', to: "/downloads/:subdomain" map '*', to: "/users/:subdomain" end ``` ## Contact Mattt Thompson - http://github.com/mattt - http://twitter.com/mattt - m@mattt.me ## License rack-subdomain is available under the MIT license. See the LICENSE file for more info.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-subdomain-0.3.1 | ./README.md |
rack-subdomain-0.3.0 | ./README.md |
rack-subdomain-0.2.1 | ./README.md |