server redirects by client domain

Martin Hamilton ([email protected])
Thu, 14 Dec 1995 14:28:20 +0000


I was just wondering whether there are any HTTP servers out there
which let the server admin configure redirects based on the
client's domain name. This seems like a neat way to make browsers
automatically use "nearby" mirror sites, without having to go
round tweaking all the clients. Obviously it would only be useful
if you take the trouble to figure out the client's domain name

e.g. to re-direct accesses to everything at http://www.apache.org/
to an appropriate mirror site, you would want to put something like
this in your server config

RedirectDomain / http://Bond.edu.au/External/Misc/apache/ .au .nz
.jp .kr .cn
RedirectDomain / http://iuinfo.tuwien.ac.at/apache/ .at .de .dk
RedirectDomain / http://sunsite.mff.cuni.cz/web/apache/ .cz
RedirectDomain / http://sunsite.icm.edu.pl/pub/www/apache/ .pl
RedirectDomain / http://sunsite.doc.ic.ac.uk/packages/apache/ .uk
.fr .be

(etc...!)

If nobody else is working on this sort of thing, I might have a
stab at hacking this into the NCSA and Apache servers

Cheerio,

Martin