472,145 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Relative link question in multi-LAN, multi-server environment

I have a web site hosted on worldwide LAN A. The web site links to
documents on a server on LAN B, which has mirror sites all over the
world. Users at remote locations are able to access only files that are
hosted on the mirror server that serves their region.

Is there any way to employ hyperlinks in my web pages that will link to
files on the mirror server for the region in which the particular user
happens to be located?

Thanks
Dave

May 17 '06 #1
2 1339

dg*****@erols.com wrote:
Is there any way to employ hyperlinks in my web pages that will link to
files on the mirror server for the region in which the particular user
happens to be located?


Mirror the web pages locally too. This is easy and you can give them
local links.

Otherwise the easiest way is with some DNS magic. Have a subdomain of
"localfileserver.example.com" and make this resolve approporiately on
each site.

What I wouldn't do is to try and redirect each file link through some
"globalisation mapper". That's a PITA that's only worth doing when
you're a public-access setup (like sourceforge).

May 17 '06 #2
dg*****@erols.com wrote:
I have a web site hosted on worldwide LAN A. The web site links to
documents on a server on LAN B, which has mirror sites all over the
world. Users at remote locations are able to access only files that are
hosted on the mirror server that serves their region.

Is there any way to employ hyperlinks in my web pages that will link to
files on the mirror server for the region in which the particular user
happens to be located?


When a link is clicked it on some particular page, the browser is
supposed to know that should request the new page from a server other
than the server that the current page came from, and it should know
which server to request them from. You want to use relative links, which
means that you aren't telling the browser explicitly what server to make
requests from. So--you're asking if browsers have psychic powers?
May 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

24 posts views Thread by sinister | last post: by
2 posts views Thread by Martin Geisler | last post: by
3 posts views Thread by LayneMitch | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.