<!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.6944.0">
<TITLE>Apache and Zope</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">This question may be more appropriate for the Apache mailing list, but it is Zope-related so I figured I'd check here as well.&nbsp; I'm trying to set up Apache HTTP Server to run in front of three sites on my server.&nbsp; Two of which are Zope sites and one of which is a PHP app that is hosted by Apache.&nbsp; I've got three different URLs pointing to the IP address of the server.&nbsp; The setup is something like this:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Zope Site 1 - Actual address: www.mysite.com:1234/zope1 Virtual Host: zope1.mysite.com (Zope is running on port 1234)</FONT>

<BR><FONT SIZE=2 FACE="Arial">Zope Site 2 - Actual address: www.mysite.com:1234/zope2 Virtual Host: zope2.mysite.com</FONT>

<BR><FONT SIZE=2 FACE="Arial">PHP Site - Actual address: www.mysite.com:7777 Virtual Host: php.mysite.com</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Now here's the frustrating part - I've got it working perfectly as long as I'm accessing these sites from the server.&nbsp; The problem is, whenever I try to access zope1.mysite.com or zope2.mysite.com from another machine, it sends me to php.mysite.com.&nbsp; Any ideas? </FONT></P>

<P><FONT SIZE=2 FACE="Arial">Here's my virtual host configuration:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">NameVirtualHost zope1.mysite.com:80</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;VirtualHost zope1.mysite.com:80&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; ServerName www.mysite.com</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; RewriteEngine On</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; RewriteRule ^/(.*) <A HREF="http://127.0.0.1:1234/VirtualHostBase/http/zope1.mysite.com/zope1/VirtualHostRoot/$1">http://127.0.0.1:1234/VirtualHostBase/http/zope1.mysite.com/zope1/VirtualHostRoot/$1</A> [L,P]</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;/VirtualHost&gt; </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">NameVirtualHost zope2.mysite.com:80</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;VirtualHost zope2.mysite.com:80&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; ServerName www.mysite.com</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; RewriteEngine On</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; RewriteRule ^/(.*) <A HREF="http://127.0.0.1:1234/VirtualHostBase/http/zope2.mysite.com/zope2/VirtualHostRoot/$1">http://127.0.0.1:1234/VirtualHostBase/http/zope2.mysite.com/zope2/VirtualHostRoot/$1</A> [L,P]</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;/VirtualHost&gt; </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">NameVirtualHost php.mysite.com</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;VirtualHost php.mysite.com&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; ServerName www.mysite.com</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; RewriteEngine On</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; RewriteRule ^/(.*) <A HREF="http://127.0.0.1:7777/$1">http://127.0.0.1:7777/$1</A> [L,P]</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&lt;/VirtualHost&gt;</FONT>
</P>

</BODY>
</HTML>