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
8080 is the port number of which Zope listening for incoming HTTP requests. To change the port number to e.g.80 you must use the -w 80 option when you start Zope. But this requires root priviliges but this is sometimes not what you want. Another approach is to use Apache running on port 80 as frontend and pass all requests via reverse proxy to a running Zope instance. Andreas ----- 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 )
On Friday 08 June 2001 17:23, Andreas Jung wrote:
8080 is the port number of which Zope listening for incoming HTTP requests. To change the port number to e.g.80 you must use the -w 80 option when you start Zope. But this requires root priviliges but this is sometimes not what you want.
Another approach is to use Apache running on port 80 as frontend and pass all requests via reverse proxy to a running Zope instance.
And this is exactly what I have tried to do. Writing the ProxyPass rules i easy. It's the part of the SiteRoot I don't understand (and that's the place I fail everytime *S*) I have used this howto: http://www.zope.org/Members/anser/apache_zserver Gitte
Andreas ----- 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 )
And this is exactly what I have tried to do. Writing the ProxyPass rules i easy.
It's the part of the SiteRoot I don't understand (and that's the place I fail everytime *S*)
It's really easy. Even easier than the other posts suggest. Let's say the site is called http://www.gitte.de on the IP 212.6.156.161 and your zope server runs on zope1:8080: The Apache virtual host definitions would be: <VirtualHost 212.6.156.161> ServerName www.gitte.de ServerAdmin webmaster@gitte.de ProxyPass / http://212.6.156.163:8080/ ProxyPassReverse / http://212.6.156.163:8080/ TransferLog /var/log/gitte.log </VirtualHost> If you don't need separate logging, you can skip the TransferLog line ... AFAIK you will not need the /p_ and /misc_ ones any more. Just try. Then you go to your zope1:8080 and add a SiteRoot in the Root with following entries: Title: Whateveryouwant Base: http://www.gitte.de Path: / That's all. It will work the same if Zope does run on the same machine. Then it is not "zope1:8080" but "www.gitte.de:8080". If you want to point to a subdirectory, add the SiteRoot there and change the above ProxyPass lines, e.g. make it "ProxyPass / http://212.6.156.163:8080/gitte/". Just make sure that you don't add or remove any "/", e.g. "ProxyPass / http://212.6.156.163:8080" would not work. The Zope server has to run in "standalone" mode with ZServer, not as a CGI module. Otherwise this would not work as advertised. BTW: Of course you have to have a DNS server configured to point www.gitte.de to the IP 212.6.156.161. But I guess you know that one ... ;-) Cheers Joachim
On Fri, Jun 08, 2001 at 07:26:19PM +0200, Joachim Werner wrote:
It's really easy. Even easier than the other posts suggest.
And just to throw one more alternative in, I've written a howto at http://www.zope.org/Members/mwr on this sort of thing. Make comments if there's an error or if you have any other suggestions. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
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 )
Jeff beet me to a reply and I noticed he is using the Rewrite Module so I will modify his settings to work with ProxyPass to save time. Thanks Jeff At 11:50 AM 6/8/2001 -0400, Jeff Sasmor wrote:
ject Publishing Environment <zope.zope.org> List-Unsubscribe: <http://lists.zope.org/mailman/listinfo/zope>, <mailto:zope-request@zope.org?subject=unsubscribe> List-Archive: <http://lists.zope.org/pipermail/zope/> Date: 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:
Yup got to have that VHM in root
----------------------- 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.becept.com> ServerName www.becept.com ServerAdmin jeff@janix.com ProxyPass / http://64.19.147.24:8080/VirtualHostBase/http/www.becept.com:80/becept/Virtu... ProxyPassReverse / http://64.19.147.24:8080/VirtualHostBase/http/www.becept.com:80/becept/Virtu... ProxyPass /misc_ http://64.19.147.24:8080/misc_ ProxyPass /p_ http://64.19.147.24:8080/p_ Repeat this replacing with the proper domain information. GL SR
<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 j ust 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 )
_______________________________________________ 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
---------------------------------------------------- Sherwood Robinson Hostmaster The Free Lance-Star/Internet Department srobinson@fredericksburg.com http://www.fredericksburg.com 616 Amelia St. Fredericksburg, VA 22401 540-374-5000 ext. 5657
Dont forget to close your virtualhost.... I did in my example below for the proxypass settings... at the end of each host place </VirtualHost> I corrected it below SR At 12:03 PM 6/8/2001 -0400, Sherwood Robinson wrote:
stinfo/zope>, <mailto:zope-request@zope.org?subject=subscribe> List-Id: Users of the Z Object Publishing Environment <zope.zope.org> List-Unsubscribe: <http://lists.zope.org/mailman/listinfo/zope>, <mailto:zope-request@zope.org?subject=unsubscribe> List-Archive: <http://lists.zope.org/pipermail/zope/> Date: Fri, 08 Jun 2001 12:03:58 -0400
Jeff beet me to a reply and I noticed he is using the Rewrite Module so I will modify his settings to work with ProxyPass to save time.
Thanks Jeff
At 11:50 AM 6/8/2001 -0400, Jeff Sasmor wrote:
ject Publishing Environment <zope.zope.org> List-Unsubscribe: <http://lists.zope.org/mailman/listinfo/zope>, <mailto:zope-request@zope.org?subject=unsubscribe> List-Archive: <http://lists.zope.org/pipermail/zope/>
Date: 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:
Yup got to have that VHM in root
----------------------- 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.becept.com> ServerName www.becept.com ServerAdmin jeff@janix.com
ProxyPass / http://64.19.147.24:8080/VirtualHostBase/http/www.becept.com:80/becept/Virtu... ProxyPassReverse / http://64.19.147.24:8080/VirtualHostBase/http/www.becept.com:80/becept/Virtu... ProxyPass /misc_ http://64.19.147.24:8080/misc_ ProxyPass /p_ http://64.19.147.24:8080/p_
</VirtualHost>
Repeat this replacing with the proper domain information.
GL
SR
<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 j ust don't know how to use it.
Please .. help ...
Gitte
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** N
o cross posts or HTML encoding! **
(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ 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
---------------------------------------------------- Sherwood Robinson Hostmaster The Free Lance-Star/Internet Department srobinson@fredericksburg.com http://www.fredericksburg.com
616 Amelia St. Fredericksburg, VA 22401 540-374-5000 ext. 5657
_______________________________________________ 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 )
---------------------------------------------------- Sherwood Robinson Hostmaster The Free Lance-Star/Internet Department srobinson@fredericksburg.com http://www.fredericksburg.com 616 Amelia St. Fredericksburg, VA 22401 540-374-5000 ext. 5657
I usually just hack z2.py, although really you can set the port with a command-line parameter in the startup script. Just read the script to find out the command-line syntax. If you are on Win NT/2000 Server, remember that it will probably start the IIS server on port 80 by default, and you have to turn that off so it doesn't conflict with Zope. On Win 98/Me, you might have Microsoft's Personal Web Server on port 80, depending on how you installed the system. Tom P [Gitte Wange] 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 ????
participants (7)
-
Andreas Jung -
Gitte Wange -
Jeff Sasmor -
Joachim Werner -
Mike Renfro -
Sherwood Robinson -
Thomas B. Passin