[TriLUG] Default web root

Tim Jowers timjowers at gmail.com
Thu Jun 12 09:35:48 EDT 2008

I thought you could setup mod_rewrite as a poor man's global director. That
is, it could forward requests to server2 based on the URL. Maybe that was
some other apache mod?

Also, I suspect what you want to do is not allowed by the web browsers. If a
script could re-home a page then it could more easily phish.
BaseHref, this property is read only.

But could t you use a reverse-proxy setup so the server will be what you
want? I guess so unless you have the problem going both ways. In that case,
maybe you need some custom filter (or mod)?


On Thu, Jun 12, 2008 at 9:03 AM, Brian McCullough <bdmc at bdmcc-us.com> wrote:

> 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
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG FAQ  : http://www.trilug.org/wiki/Frequently_Asked_Questions

More information about the TriLUG mailing list