[Zope] I have tried everything!!! Isn't it possible to host several domains in 1 Zope and have apache running ????

Jeff Sasmor jeff@janix.com
Fri, 8 Jun 2001 11:50:46 -0400


I install a virtual host monster in the Zope root folder and add the
following to
my httpd.conf:

-----------------------
NameVirtualHost 64.19.147.24:80

<VirtualHost www.becept.com>
ServerName www.becept.com
ServerAdmin jeff@janix.com
RewriteEngine On
RewriteLog "/var/log/apache/rewrite_log"
RewriteLogLevel 1
RewriteRule ^/(.*)
http://64.19.147.24:8080/VirtualHostBase/http/www.becept.com:80/becept/Virtu
alHostRoot/$1 [e=HTTP_CGI_AUTHORIZATION:%1,P]
UseCanonicalName off
</VirtualHost>


<VirtualHost www.yellowbrain.com>
ServerName www.yellowbrain.com
ServerAdmin jeff@janix.com
RewriteEngine On
RewriteLog "/var/log/apache/rewrite_log"
RewriteLogLevel 1
RewriteRule ^/(.*)
http://64.19.147.24:8080/VirtualHostBase/http/www.yellowbrain.com:80/yb/Virt
ualHostRoot/$1 [e=HTTP_CGI_AUTHORIZATION:%1,P]
UseCanonicalName off
</VirtualHost>


<VirtualHost www.othink.com>
ServerName www.othink.com
ServerAdmin jeff@janix.com
RewriteEngine On
RewriteLog "/var/log/apache/rewrite_log"
RewriteLogLevel 1
RewriteRule ^/(.*)
http://64.19.147.24:8080/VirtualHostBase/http/www.othink.com:80/othink/Virtu
alHostRoot/$1 [e=HTTP_CGI_AUTHORIZATION:%1,P]
UseCanonicalName off
</VirtualHost>


Listen 64.19.147.24:80


----------------------
some notes:
  z2.py should be set with the correct IP address, not 64.19.147.24
  Your system must be responding to that IP, I use Webmin (www.webmin.com)
to set up all that.
  the dir used for the rewrite_log should be writable by apache - that user
may be 'nobody' I believe
  the rewrite rule might be folded onto 2 lines - it should include
[e=HTTP_CGI_AUTHORIZATION:%1,P]
  the stuff in [] might need to be changed depending on what you need to do
  I figured this out with a lot of digging and etc.  I am by no means an
Apache expert so I can't provide more help than this.

good luck!

jeff sasmor
-------------------------------------------------------------------------



----- Original Message -----
From: "Gitte Wange" <gitte@mmmanager.org>
To: <zope@zope.org>
Sent: Friday, June 08, 2001 11:07 AM
Subject: [Zope] I have tried everything!!! Isn't it possible to host several
domains in 1 Zope and have apache running ????


> Hello,
>
> Maybe I am stupid but really ..
> Every site I have visited that runs Zope doesn't have the ugly :8080
present
> in the URL.
> Have do you do it ????
>
> And how do I host several domains in one Zope ???
>
> I have read - and tried - almost every howto on Zope.org but they are very
> confusing. On thing I have descovered is that SiteRoot is a "mean"
product -
> or I just don't know how to use it.
>
> Please .. help ...
>
> Gitte
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>