I am trying to use an apache instance for virtual hosting of several
machines in the following config.

www.myserver.com points at a weblogic virtual host.
www.myserver.com/PortalTwo points at Zope but right now I'm having to vhost
using the name portaltwo.myserver.com and point that at a different class C
IP on another apache server because I can't virtualhost the directory
because of the problem below.
www.myserver2.net points at Weblogic using mod_wl_ssl
www.myserver3.net points at Zope, but I have to host this domain on a
different apache server because of the problems listed below.

I tried to use mod_rewrite as below:
RewriteEngine On
RewriteCond ${HTTP_HOST} ^.*:80$
 RewriteRule ^/(.*)
http://zope.mydomain.com:8080/VirtualHostBase/http/${HTTP_HOST}:80/VHOSTS/my
server/portaltwo/VirtualHostRoot/$1 [L,P]

I also tried to use ProxyPass as below:
ProxyPass /
http://zope.mydomain.com:8080/VirtualHostBase/http/www.mydomain.com:80/VHOST
S/myserver/portaltwo/VirtualHostRoot/
ProxyPassReverse /
http://zope.mydomain.com:8080/VirtualHostBase/http/www.mydomain.com:80/VHOST
S/myserver/portaltwo/VirtualHostRoot/

Neither one worked on the same server running the mod_wl_ssl module.  I need
that module to pass ssl requests through apache to weblogic.  Does anyone
know why they might conflict and/or what I might be able to do in order to
get around it?

I have written a java library for a type of virtual hosting kindof like
mod_rewrite (it basically just pushes all links and images through a java
servlet and forwards http headers and shares a java.net.URL resource).  I'm
using it to pull content from Zope inside of Weblogic jsps and servlets.
This has nothing to do with the above issue, it just illustrates why things
are kind of messy with my virtual hosting needs right now.

I'm running 5 real domains with about 5 servers per domain, not including
database servers and virtual hosts.

Reply via email to