On Mar 16, 2009, at 3:48 PM, cawb wrote:


I should probably ask this question in an Apache group, but I cannot get my head around the following scenario based on any of the examples I have found so far. I want to host a mixture of sites on a single server using apache
for some and plone for others.

Let's say:
   abc.tld and xyz.tld via zope
   example.tld and simple.tld via apache

I've got apache installed and working. I've got zope installed and working.

I create a file called zope.conf in /etc/httpd/conf.d and place the
following in it.

RewriteCond %{HTTP_HOST} ^www.abc.tld$
ServerName www.abc.tld
RewriteRule ^/(.*) \

http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/ abcplonesite/VirtualHostRoot/$1
[L,P]

This correctly maps incoming requests to my plone site.

Now, I want to mix this with

<VirtualHost example.tld:80>
ServerName www.example.tld
DocumentRoot /home/user/example
</VirtualHost>

but as soon as I do, all sites are served from apache, not zope.

I have tried wrapping the zope rewrites into individual virtual host tags
and received warnings.


This is the most common approach. Put all your sites, Zope and static, inside individual VirtualHost containers. You don't describe what warnings you get. Do you have a NameVirtualHost directive before the VirtualHost container?

NameVirtualHost <ip address>:80

Ric



_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to