[Zope] 2virtualhosts on 1 zope, apache in front

Christoph Folberth folberth@decodon.com
Mon, 08 Oct 2001 14:46:13 +0200


Hello !

Being in desperate need for help on the follwing problem, i am asking
you to help me.
Here comes the problem:

I have one ZServer listening on port 7080, which should run 2 different
virtual hosts called atp.decodon.com and ughagh.com.
In the ZopeDB the files for the atp.decodon.com are located in the
root-folder / - and the files for ughagh.com are located in a subfolder
called /play/Test.
In the root-Folder /, there sits a virtualhostmonster.

An Apache serves as a Proxy with the following Configuration:

<VirtualHost 172.31.1.7:80>
    ServerName ughagh.com
    ServerAdmin webmaster@decodon.com
    ProxyPass /
http://localhost:7080/VirtualHostBase/http/ughagh.com:80/play/Test/VirtualHostRoot/
    ProxyPassReverse /
http://localhost:7080/VirtualHostBase/http/ughagh.com:80/play/Test/VirtualHostRoot/
</VirtualHost>

<VirtualHost 172.31.1.7:80>
    ServerName atp.decodon.com
    ServerAdmin webmaster@decodon.com
    ServerAlias atp.decodon.com www.atp.decodon.com
    ProxyPass /
http://localhost:7080/VirtualHostBase/http/atp.decodon.com:80//VirtualHostRoot/
    ProxyPassReverse /
http://localhost:7080/VirtualHostBase/http/atp.decodon.com:80//VirtualHostRoot/
</VirtualHost>


So far, everything works fine, EXCEPT:
when i am in ughagh.com, which is actually a subfolder of
atp.decodon.com, i can move up the directory tree, to the files which
are supposed to be seen only from atp.decodon.com... (I can do this,
simply by entering an 
existing Filename of one of the upper Directories)

Now, i am asking anyone who knows about this, how (by which Product or
whatever) i can stop anyone moving up the directory-tree to the files
which should belong to the domain atp.decodon.com.

Being quite a Newbie, i would appreciate help, which is understandable
by a partial zope-dumb.                            



Thanx, in advance!!

Chr.!


PS: I also tried to edit the VirtualHostMonster, but it didn't help!