Video mirror redirector ======================= This fulfills a simple need: Redirecting people on to the closest mirror of many. It was specifically written for Debconf 13, but should be useable for any kind of dumb HTTP mirror. It is based on http.debian.net (https://github.com/rgeissert/http-redirector), but heavily modified, since we do not need most of what a Debian mirror needs. You will most likely need some local tweaking of e.g. the mirror list; things are a lot more hard-coded than in the original Getting started =============== Required packages: libcgi-simple-perl libgeo-ip-perl libwww-perl wget Run ./update.sh, it will download the geoip databases, the mirrors list, build the database used by the redirector, and check the mirrors for errors. Check the first lines of redir.pl for the invocation (or look at the example below.) Real life testing ================= Here's the Apache snippet we used during Debconf 13: AddHandler cgi-script .pl Options +ExecCGI RewriteEngine On RewriteRule ^/(.*)$ /redir.pl?url=$1 [L] Credits ======= "This product includes GeoLite data created by MaxMind, available from http://maxmind.com/"