[Zope] Running 2 instances of Zope on Apache

Peter Bengtsson peter at fry-it.com
Wed Jul 26 12:17:01 EDT 2006


How about something like this::
<VirtualHost *:80>
     ServerAdmin ian.ripping at cfh.nhs.uk
     ServerName live.commsg6lds
     RewriteEngine On
     RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/live.commsg6lds:80/extranet/VirtualHostRoot/$1
[L,P]
</VirtualHost>
<VirtualHost *:80>
     ServerAdmin ian.ripping at cfh.nhs.uk
     ServerName dev.commsg6lds
     RewriteEngine On
     RewriteRule ^/(.*)
http://localhost:9080/VirtualHostBase/http/dev.commsg6lds:80/extranet/VirtualHostRoot/$1
[L,P]
</VirtualHost>

What way live.commsg61ds points to zope on port 8080
and dev.commsg61ds points to another zope on port 9080


ianripping wrote:
> I have tried using the exaplme provided but having no luck.
> 
> This is my standard config file:
> 
> <VirtualHost *:80>
>     ServerAdmin ian.ripping at cfh.nhs.uk
>     ServerName commsg6lds
>     RewriteEngine On
>     RewriteRule ^/(.*)
> http://localhost:8080/VirtualHostBase/http/commsg6lds:80/extranet/VirtualHostRoot/$1
> [L,P]
> </VirtualHost>
> 
> I am using rewrite rule and this works for just the internal address
> http://commsg6lds
> 
> How would I configure this for http://live.commsg6lds
> Do I have to enable NameVirtualHost?
> What should I have for listen? Currently:
> Listen 80

-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Zope mailing list