"James A. Treacy" <[EMAIL PROTECTED]> wrote:
This is one of the reasons that relative links are a good idea. As a made up example, a link from http://gnucash.org/en/contribute.phtml to http://gnucash.org/pub/gnucash/sources/stable/ should use <a href="../pub/gnucash/sources/stable/"> instead of <a href="http://gnucash.org/pub/gnucash/sources/stable/">
I think Curt does not really need "beginner's lesson to HTML" ....
The main problem is that directory layouts of different ftp-mirrors are
likely to differ _and_ the hostname will be different.
_This_ is a lesson I'd be interested in: How do you substitute
'http://www....' by 'ftp://ftp....' automagically _without_ a dynamic
web page !?
Martin.
--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
How about this :
http://httpd.apache.org/docs/misc/rewriteguide.html -- check out the part about the Archive Access Multiplexer..
http://httpd.apache.org/docs/mod/mod_rewrite.html#mapfunc -- check out randomized plain text
I assume that since it's Debian / Apache 1.3.27 [flightgear.org] that mod_rewrite is installed.
You have a list of sites through which mod-rewrite round-robins. You would have to change the image map to request http://flightgear.org/scenery/$filename instead of ftp. Then add this to your server configuration in httpd.conf :
RewriteEngine on
RewriteMap servers rnd:/path/to/servers.map
RewriteRule ^.*/scenery/(.*)$ ${servers:uptodate}$1 [R,L]
Then, put this easy to update servers.map file in a world readable locaion :
uptodate ftp://ftp.planetmirror.com/pub/fgfs/Scenery-0.9.2/|ftp://ftp.de.flightgear.o rg/pub/fgfs/Scenery-0.9.2/|ftp://obgyn.edu.pl/fgfs/Scenery-0.9.2/|ftp://ftp. flightgear.org/pub/fgfs/Scenery-0.9.2/
Voila, auto_magic! You could even use a perl script as a map and then, of course, the possibilities are endless :> btw, this is the list of mirrors that has the new scenery.
Cheers, Simon.
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel