Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattt/rack-heroku-no-such-app
Rack middleware to prevent loading from `*.heroku.com` / `*.herokuapp.com` addresses
https://github.com/mattt/rack-heroku-no-such-app
Last synced: 3 months ago
JSON representation
Rack middleware to prevent loading from `*.heroku.com` / `*.herokuapp.com` addresses
- Host: GitHub
- URL: https://github.com/mattt/rack-heroku-no-such-app
- Owner: mattt
- License: mit
- Archived: true
- Created: 2013-03-22T14:13:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-07-07T22:17:04.000Z (over 5 years ago)
- Last Synced: 2024-07-20T11:15:53.709Z (4 months ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Rack::HerokuNoSuchApp
Rack middleware to prevent loading from `*.heroku.com` / `*.herokuapp.com` addresses by serving default Heroku 404 page for "App not found". Use in combination with custom domains.
## Usage
```ruby
require "rack/heroku/no-such-app"use Rack::Heroku::NoSuchApp
```Including this in the `config.ru` file of your Rack application will respond to requests for `*.herokuapp.com` (or redirected from `*.heroku.com`) with the following 404 page:
> ## Heroku | No such app
>
> There is no app configured at that hostname.
> Perhaps the app owner has renamed it, or you mistyped the URL.## License
rack-heroku-no-such-app is available under the MIT license. See the LICENSE file for more info.