Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 2.22 KB

README.md

File metadata and controls

39 lines (25 loc) · 2.22 KB

RubyForge redirects

A project to redirect broken rubyforge.org URLs still in the wild.

Background

Despite being taken offline in May 2014 there are still many rubyforge.org URLs in the wild. We believe that cool URIs don't change so have created this project to provide useful redirects for those old rubyforge.org URLs.

This is inspired by Tom Stuart's rubyforge-redirects project from in early 2015, and from James Mead's blog post in 2017.

Implementation

The current plan is to use Fastly's VCL to implement redirection at the edge for any rubyforge.org URLs we know about. All other requests fall through to a GitHub Pages hosted 404 page that explains how to contribute to these redirection rules. We configure Fastly to log requests to S3 so that we can additionally monitor requests for URLs that we should add redirects for.

The VCL snippets are in the config/ directory and are currently manually copied to Fastly using the web interface. We might consider automating this if doing it manually becomes too cumbersome.

See the setup doc for more detailed information about how this is currently configured.

Tests

We use Ruby to test that the Fastly configuration is working as expected.

bundle
ruby test/*.rb

Contributing

The main thing we need help with is mapping old rubyforge.org URLs to their current location. If you can help with this then consider creating a pull request with relevant changes to the tests/fastly config, or creating an issue with the old and new URLs and we'll add the mapping to the config.