469,286 Members | 2,419 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,286 developers. It's quick & easy.

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 1291

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.

By using this site, you agree to our Privacy Policy and Terms of Use.