/etc/bind/db.domain-name
; round-robin rr1 IN A IP-1-1 rr1 IN A IP-1-2 ... rr1 IN A IP-1-N dn1 IN CNAME rr1.domain-name.
This domaine name is used by MEDIATEX WEB interface. For instance, clicking on the logo will resolve this domain name.
~mdtx-coll/git/servers.txt
dnsHost dn1.domain-name
/etc/bind/db.domain-name
dn1 IN CNAME rr1.domain-name. dn2 IN CNAME rr2.domain-name. … dnN IN CNAME rrN.domain-name. www IN CNAME ns.domain-name.
This may be usesefull if a mediatex instance is not enought to handle all collections. The Apache configuration will distribute a uniq main domain (www.domain-name) name to several MEDIATEX (see Conceptual model) instances, by maping collection’s name to target domain names:
$ cat >map.txt <<EOF coll1 dn1 coll2 dn1 … collX dn2 … collY dnN EOF # httxt2dbm -i map.txt -o map.map # chown www-data. map.*
RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteMap dn "dbm:/etc/apache2/map.map" RewriteRule "/~mdtx-([^/]*)(.*)" "http://${dn:$1}.%1/~mdtx-$1$2"
So URLs like http://www.domain-name/~mdtx-collX/…
will be maped to
http://dn2.domain-name/~mdtx-collX/…
.