Atlassian removes support for CNAME 2015-07-01.
Some URLs gathered during a quick Google search:
- http://hg.dereckson.be/zed/src/0ffd1b08f33c/includes/login.php [the Azhàr imported code contained an OpenID provider when committed according Git history]
 - http://hg.dereckson.be/azhar [Mercurial repo, so not served anymore]
 - http://hg.dereckson.be/freebsd-ports/src/tip/ [ok]
 - http://hg.dereckson.be/freebsd-ports/src/tip/math/ [ok, but 404 as no more math ports]
 - http://hg.dereckson.be/source-templates-generator [ok]
 - http://hg.dereckson.be/freebsd-ports/src/tip/net/quicktun/ [OK]
 - http://hg.dereckson.be/zed/ [ok]
 
So we have two main cases:
- /{REPO}[/]
 - /{REPO}/src/{COMMIT}/{FILE}
 
We could intercept stuff, or simply do this: