[Zope] Apache and Zope
Robert Hill
RHill at msdinc.com
Fri Jan 14 10:03:20 EST 2005
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:
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]
</VirtualHost>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050114/5d25b9c2/attachment.htm
More information about the Zope
mailing list