[TriLUG] Default web root

Brian McCullough bdmc at bdmcc-us.com
Thu Jun 12 09:03:41 EDT 2008


On Thu, Jun 12, 2008 at 08:55:44AM -0400, Marc Wiatrowski wrote:
> 
> 
> On Wed, 2008-06-11 at 16:58 -0400, Brian McCullough wrote:
> 
> >   ( I know that there are much better ways to
> > resolve the example problem, but reality isn't really an example. )
> 
> 
> Can I use this quote?  :)

Feel free.



> > 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.
> 
> Is this static content?  If this image1.png is always on the west-coast,
> couldn't you just
> always use the full URI on all servers or use mod_rewrite to always
> point /tets1 to west-coast?
> 
> If its dynamic, I would think it would be fairly easy to dump the whole
> URI depending on 
> which server you are on?


Part of my issue is that I am not really talking about one page and two
servers.  Much of what I am already doing is what you describe, but some
of the pages that I have to deal with generate their URLs in JavaScript,
and I don't have any control over them.  When the URL is absolute, there
are no problems, but when they make assumptions, I have trouble.

BTW, should I mention that I really don't have much control over the
content of these various pages?  They are generated outside my control,
and I am trying to add some "wrapper" code that is not an IFrame, since
I have found that some of my code can't see content through the frame
boundary.


Thanks for the suggestions.  I am trying the Base tag to see if it
helps.

Brian




More information about the TriLUG mailing list