<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: VirtualHostBase VHM keyword doesn't work.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>are you loading the proxy modules?<BR>
<BR>
here is part of the http.config file that is working for me, however with that configuration all request are going to zope.&nbsp; Is there a way to have part of the requests going to zope and others being served by apache?<BR>
<BR>
------<BR>
LoadModule proxy_module modules/mod_proxy.so<BR>
LoadModule proxy_http_module modules/mod_proxy_http.so<BR>
LoadModule rewrite_module modules/mod_rewrite.so<BR>
------<BR>
<BR>
&lt;VirtualHost *:80&gt;<BR>
&nbsp;ServerAlias&nbsp;&nbsp; someName<BR>
<BR>
&nbsp;ServerSignature On<BR>
<BR>
&nbsp;CustomLog&nbsp;&nbsp;&nbsp;&nbsp; myLog.log<BR>
&nbsp;ErrorLog&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myError.log<BR>
&nbsp;LogLevel warn<BR>
&nbsp;&lt;IfModule mod_rewrite.c&gt;<BR>
&nbsp;&nbsp; RewriteEngine On<BR>
&nbsp;&nbsp; RewriteRule ^/(.*) \<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://localhost:8080/VirtualHostBase/http/%">http://localhost:8080/VirtualHostBase/http/%</A>{SERVER_NAME}:80/myVHM/VirtualHostRoot/$1 [L,P]<BR>
&nbsp; &lt;/IfModule&gt;<BR>
&lt;/VirtualHost&gt;<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: zope-bounces@zope.org on behalf of Mark, Jonathan (Integic)<BR>
Sent: Tue 4/10/2007 9:23 PM<BR>
To: zope@zope.org<BR>
Subject: VirtualHostBase VHM keyword doesn't work.<BR>
<BR>
Zope 2.9 says in the Virtual Host Monster About Tab: &quot;For example, suppose Zope is running on port 8080 behind an Apache running on port 80. You place a Virtual Host Monster in the Zope root Folder, and use Apache to rewrite &quot;/(.*)&quot; to <A HREF="http://localhost:8080/VirtualHostBase/http/www.buystuff.com:80/buystuff.com/VirtualHostRoot/$1">http://localhost:8080/VirtualHostBase/http/www.buystuff.com:80/buystuff.com/VirtualHostRoot/$1</A>.&quot;<BR>
<BR>
However, the following in my Apache 2.2 httpd file does not work:<BR>
<BR>
&lt;VirtualHost *:80&gt;<BR>
&nbsp;&nbsp;&nbsp; RewriteEngine on<BR>
&nbsp;&nbsp;&nbsp; DocumentRoot /var/www<BR>
&nbsp;&nbsp;&nbsp; Servername goodbyeken.com<BR>
&nbsp;&nbsp;&nbsp; RewriteRule /(.*)&nbsp; <A HREF="http://goodbyeken.com:8080/VirtualHostBase/http/www.goodbyeken.com:80/goodbyeken.com/VirtualHostRoot/$1">http://goodbyeken.com:8080/VirtualHostBase/http/www.goodbyeken.com:80/goodbyeken.com/VirtualHostRoot/$1</A><BR>
&lt;/VirtualHost&gt;<BR>
<BR>
The above directive results in a Zope &quot;resource not found&quot; error. I have a Virtual Host Monster called myVHM in my Zope root directory. myVHM is able to do redirections that do not include the VirtualHostBase keyword.<BR>
<BR>
Why doesn't the VirtualHostBase keyword work?<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>