{"id":16846622,"url":"https://github.com/atmos/rack-redirect","last_synced_at":"2025-09-13T01:19:48.366Z","repository":{"id":622486,"uuid":"262156","full_name":"atmos/rack-redirect","owner":"atmos","description":"simple redirects for your solo slices via a little rack app","archived":false,"fork":false,"pushed_at":"2009-07-31T06:35:36.000Z","size":84,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-14T13:03:56.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/atmos/rack-redirect/tree/master","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atmos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-07-28T02:54:17.000Z","updated_at":"2019-08-13T14:27:13.000Z","dependencies_parsed_at":"2022-07-18T12:19:22.272Z","dependency_job_id":null,"html_url":"https://github.com/atmos/rack-redirect","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atmos%2Frack-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atmos%2Frack-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atmos%2Frack-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atmos%2Frack-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atmos","download_url":"https://codeload.github.com/atmos/rack-redirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358555,"owners_count":21090402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T13:03:58.002Z","updated_at":"2025-04-11T06:54:32.123Z","avatar_url":"https://github.com/atmos.png","language":"Ruby","readme":"rack-redirect\n=============\nMore and more of my friends are deploying on [Engine Yard Solo][solo] and I\nkeep getting asked for help.  My friends at [everlater][everlater] wanted every\nincoming request for *.everlater.com to go to www.everlater.com.  Here's a\nlittle app that you can deploy on solo to handle all the weird HTTP_HOST\nvariants your app might 404 on.\n\nInstallation\n============\n\n    % sudo gem install rack-redirect\n\nDeployment\n==========\nYour rackup file should look something like this.\n\n    require 'rubygems'\n    require File.join(File.dirname(__FILE__), 'lib', 'rack-redirect')\n\n    use Rack::EY::Solo::DomainRedirect\n    run lambda { |env| [200, { 'Content-Type' =\u003e 'text/plain' }, ['Hello there, gorgeous'] ] }\n\ntesting\n=======\n\nJust run rake...\n    rack-redirect with a value of 'www'\n      - forwards on from http://www.example.org to the next app\n      - redirects from http://example.org to http://www.example.org/\n      - redirects from http://wwww.example.org to http://www.example.org/\n      - redirects from http://alpha.example.com to http://www.example.org/\n      - redirects from http://example.org/nate to http://www.example.org/nate\n      - redirects from http://example.org/nate?trip_id=42 to http://www.example.org/nate?trip_id=42\n\n    rack-redirect without specifying a prefix\n      - forwards on requests from http://example.org to the next app\n      - redirects from http://alpha.example.com to http://example.org/\n      - redirects from http://alpha.example.org/nate to http://example.org/nate\n      - redirects from http://alpha.example.org/nate?trip_id=42 to http://example.org/nate?trip_id=42\n\n\n[sinatra]: http://www.sinatrarb.com\n[everlater]: http://everlater.com\n[solo]: http://engineyard.com/solo\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatmos%2Frack-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatmos%2Frack-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatmos%2Frack-redirect/lists"}