httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "oxfordmusic.net" <li...@oxfordmusic.net>
Subject Re: [users@httpd] Apache + Zope & PHP
Date Fri, 14 Jan 2005 15:25:20 GMT
Apache + Zope & PHP---------Original message ---------------
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]
-----------------------------------------

i believe you only need one NameVirtualHost directive which should be the 
listening IP of your Apache:
http://httpd.apache.org/docs/mod/core.html#namevirtualhost

andy 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message