httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Hill" <RH...@msdinc.com>
Subject [users@httpd] Apache + Zope & PHP
Date Fri, 14 Jan 2005 15:16:58 GMT
Hey all,

I'm trying to set up Apache HTTP Server 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:

Zope Site 1 - Actual address: www.mysite.com:1234/zope1 Virtual Host: zope1.mysite.com (Zope
is running on port 1234)
Zope Site 2 - Actual address: www.mysite.com:1234/zope2 Virtual Host: zope2.mysite.com
PHP Site - Actual address: www.mysite.com:7777 Virtual Host: php.mysite.com

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? 

Here's my virtual host configuration:

NameVirtualHost zope1.mysite.com:80
<VirtualHost zope1.mysite.com:80>
   ServerName www.mysite.com
   RewriteEngine On
   RewriteRule ^/(.*) http://127.0.0.1:1234/VirtualHostBase/http/zope1.mysite.com/zope1/VirtualHostRoot/$1
[L,P]
</VirtualHost> 

NameVirtualHost zope2.mysite.com:80
<VirtualHost zope2.mysite.com:80>
   ServerName www.mysite.com
   RewriteEngine On
   RewriteRule ^/(.*) http://127.0.0.1:1234/VirtualHostBase/http/zope2.mysite.com/zope2/VirtualHostRoot/$1
[L,P]
</VirtualHost> 

NameVirtualHost php.mysite.com
<VirtualHost php.mysite.com>
   ServerName www.mysite.com
   RewriteEngine On
   RewriteRule ^/(.*) http://127.0.0.1:7777/$1 [L,P]





Mime
View raw message