W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1997

Re: Jigsaw as Mirror?

From: Yves Lafon <ylafon@w3.org>
Date: Tue, 14 Oct 1997 13:59:24 +0200 (MET DST)
To: Wolfgang Platzer <wplatzer@iaik.tu-graz.ac.at>
cc: Jigsaw Mailinglist <www-jigsaw@w3.org>
Message-ID: <Pine.SOL.3.91.971014133632.17651A-100000@tarantula.inria.fr>
On Tue, 14 Oct 1997, Wolfgang Platzer wrote:

> I am trying to use Jigsaw for the following problem:
> A client connects to Jigsaw (jigsaw.foo.com:4444/TestHost) and Jigsaw shall
> export the space of another WebServer under the directory /TestHost/ (other
> WebServer: test.foo.com:8888) without caching.
> My question: What resource is appropriate for this kind of problem:
> - w3c.jigsaw.proxy.ForwardDirectory
> - w3c.jigsaw.proxy.MirrorDirectory
> - w3c.jigsaw.resources.VirtualHostResource
> and how do I configure Jigsaw?
> Thanks
> Wolfgang

ForwardDirectory (and then MirrorDirectory) is tuned to act as a root 
For example, if you set mirrors to http://www.foo.com/
in a directory /toto/ of your server http://www.bar.com/
then all request to http://www.bar.com/toto/something
will be redirected to http://www.foo.com/toto/something

So the name you want to use for a directory must be exactly the one of 
the mirrored server. If you want to mirror the whole server, you need to 
install the MirrorDirectory as your root resource, set the local-root to 
root, then you can access your "normal" space with the root/ prefix
(It is like the Proxy, both extends ForwardDirectory).
To change the behaviour of MirrorDirectory (ie: if you want to mirror 
UNDER one directory, which is unsafe, link-wise, because of the 
possibility of absolute links in pages served), simply subclass 

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \                Architecture Domain - Jigsaw
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Tuesday, 14 October 1997 07:59:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:31 UTC