[Zope] virtual host monster problem

johan30 at easynet.be johan30 at easynet.be
Thu Jan 6 17:32:38 EST 2005


This is what is have now :

<VirtualHost *>
ServerName managedrouters.easynet.be/help
ServerAdmin johan.boeckx at be.easynet.net
ServerAlias managedrouters.easynet.be/help
ProxyPass /
http://212.100.163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/
ProxyPassReverse /
http://212.100.163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/
</VirtualHost>

<VirtualHost 212.100.163.214>
            ServerAdmin johan.boeckx at be.easynet.net
            DocumentRoot /opt/jffnms/htdocs
            ServerName managedrouters.easynet.be
            RewriteEngine on
            RewriteRule ^/(.*)
http://212.100.163.214:8080/VirtualHostBase/http/212.100.163.214/help/VirtualHostRoot/$1[P]
</VirtualHost>


I arrive on the plone-site, but something very weird is happening, a lot of
layout has been disappeared, and the links point to the root-dir of the zope
server, and not to the subdir. You can see the difference :

http://212.100.163.214:8080/help
http://212.100.163.214/help

Greetings,
Johan






----- Original Message ----- 
From: "Andreas Pakulat" <apaku at gmx.de>
To: <zope at zope.org>
Sent: Thursday, January 06, 2005 11:58 PM
Subject: Re: [Zope] virtual host monster problem


> On 06.Jan 2005 - 21:59:01, johan30 at easynet.be wrote:
> > hi,
> >
> > I have a question of virtual host monster in combination with a virtual
plone site, in combination with an apache site
> >
> > I have an url http://212.100.163.214:8080/help  that should be directed
to http://212.100.163.214/help    : this means that everytime i go to the
url or http://212.100.163.214/help , I should arrive to
http://212.100.163.214:8080/help    , which is a zope site. I have installed
vhm in the root folder of http://212.100.163.214:8080 and i have as
httpd.conf zope-part :
>
> That's exactly what I do for my zope-site...
>
> > LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so
> > AddModule mod_proxy.c
> > <VirtualHost 212.100.163.214>
> >             ServerAdmin johan.boeckx at be.easynet.net
> >             DocumentRoot /opt/jffnms/htdocs
> >             ServerName managedrouters.easynet.be
> > </VirtualHost>
> > <VirtualHost *>
> > ServerName managedrouters.easynet.be/help
> > ServerAdmin johan.boeckx at be.easynet.net
> > ServerAlias managedrouters.easynet.be/help
> > ProxyPass /
http://212.100/163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/
> > ProxyPassReverse /
http://212.100/163.214:8080/VirtualHostbase/http/managedrouters.easynet.be:80/help/VirtualHostRoot/
> >
> > </VirtualHost>
>
> First thing: The ProxyPass line has an invalid IP: 212.100_/_163.214
> anyway I'm using something like:
>
> LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
> <VirtualHost 212.100.163.214>
> ServerAdmin ...
> DocumentRoot ...
> ServerName ...
> RewriteEngine on
> RewriteRule ^/(.*)
>
http://212.100.163.214:8080/VirtualHostBase/http/212.100.163.214/help/VirtualHostRoot/$1
> [P]
> </VirtualHost>
> <VirtualHost *>
> DocumentRoot ...
> </VirtualHost>
>
> This rewrites any access to the normal IP to the Zope/help thing and
> makes that the server-name again (so nobody sees that it's Zope
> actually serving the pages). Have a look at the doc for the
> RewriteRule on how to match only for serverip/help instead of
> everything (out off my head I think RewriteRule ^/help/(.*) ... might
> be the right)
>
> Andreas
>
> -- 
> You now have Asian Flu.
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list