<!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. I'm trying to set up Apache HTTP Server to run in front of three sites on my server. Two of which are Zope sites and one of which is a PHP app that is hosted by Apache. I've got three different URLs pointing to the IP address of the server. 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. 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. 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"><VirtualHost zope1.mysite.com:80></FONT>
<BR><FONT SIZE=2 FACE="Arial"> ServerName www.mysite.com</FONT>
<BR><FONT SIZE=2 FACE="Arial"> RewriteEngine On</FONT>
<BR><FONT SIZE=2 FACE="Arial"> 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"></VirtualHost> </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">NameVirtualHost zope2.mysite.com:80</FONT>
<BR><FONT SIZE=2 FACE="Arial"><VirtualHost zope2.mysite.com:80></FONT>
<BR><FONT SIZE=2 FACE="Arial"> ServerName www.mysite.com</FONT>
<BR><FONT SIZE=2 FACE="Arial"> RewriteEngine On</FONT>
<BR><FONT SIZE=2 FACE="Arial"> 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"></VirtualHost> </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">NameVirtualHost php.mysite.com</FONT>
<BR><FONT SIZE=2 FACE="Arial"><VirtualHost php.mysite.com></FONT>
<BR><FONT SIZE=2 FACE="Arial"> ServerName www.mysite.com</FONT>
<BR><FONT SIZE=2 FACE="Arial"> RewriteEngine On</FONT>
<BR><FONT SIZE=2 FACE="Arial"> 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"></VirtualHost></FONT>
</P>
</BODY>
</HTML>