[TriLUG] Default web root

Brian McCullough bdmc at bdmcc-us.com
Wed Jun 11 16:58:52 EDT 2008


Folks,

I am trying to find the right question to ask, so that the search
engines can educate me.

I _think_ I have seen something like this somewhere, but can't remember
where, or if, I saw it.


I am looking for a way to properly turn relative URIs into proper, fully
qualified, URIs.  What I seem to remember is a ( perhaps JavaScript )
value that you can set ( maybe a meta-tag? ) a value in the web page
that can be used by the browser to resolve any URIs that aren't actually
served by the server providing the page.

For instance, I have two servers, east-coast.example.com and
west-coast.example.com.  ( I know that there are much better ways to
resolve the example problem, but reality isn't really an example. )

I am trying to serve all pages from data that is only in the west-coast
server.  Therefore, a URI like "href=/tets1/image1.png" would be
acceptable on the west-coast server, but should read:
"href=http://west-coast.example.com/tets1/image1.png" on the east-coast
machine.


Am I ringing any bells with anybody, or am I just dreaming?


Thanks,
Brian




More information about the TriLUG mailing list