Re: [Zope] Using ProxyPass and SiteRoot
"\"Geoffrey L. Wright\" > > knight writes: > > > Timothy, > > > > Without going into too much detail, you are going to want to set up a > > virtual host in apache for the hostname www.isd197.k12.mn.us, and inside > > that virtual host you will want to add your ProxyPass lines similar to my > > example: > > [...] > > And just for reference, here's another working example with ProxyPass: > > NameVirtualHost 172.17.10.13 > > > ServerName syslog.integritysi.com > ServerAdmin [EMAIL PROTECTED] > ProxyPass / http://vishnu.integritysi.com:8080/syslog/ > ProxyPassReverse / http://vishnu.integritysi.com:8080/syslog/ > ProxyPass /misc_ http://vishnu.integritysi.com:8080/misc_ > ProxyPass /p_ http://vishnu.integritysi.com:8080/p_ > ErrorLog logs/syslog.integritysi.com > TransferLog logs/syslog.integritysi.com > > > Good luck, and don't forget to enable the ProxyPass module. > Some remarks: 1) If you use custom product which contain images, it is useful to add sth like ProxyPass /Control_Panel/Products/Mycustomproduct http://localhost:9673/Control_Panel/Products/Mycustomproduct (otherwise you will not see the images which belong to the product - in my case I couldn't see the product icons on management screens). Reverse pass for this purpose is not needed. 2) ZCatalog does not work with SiteRoot. Smaller problem: the URLs returned are incorrect (you can parse them with dtml). Greater problem: attempt to find new items fails (the only solution I found is to remove SiteRoot, find/update ZCatalog, add SiteRoot again). 3) You loose original IP address (you can use mod_proxy_add_forward custom Apache module to preserve it in the custom X-Forwarded-For header, so far I have not managed to recover original addresses in zope log and for logging verification). -- http://www.mk.w.pl / Marcin.Kasperski | Poradnik dla kupujÄ…cych mieszkanie: @softax.com.pl | http://www.kupmieszkanie.prv.pl @bigfoot.com \ ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Using ProxyPass and SiteRoot
knight writes: > Timothy, > > Without going into too much detail, you are going to want to set up a > virtual host in apache for the hostname www.isd197.k12.mn.us, and inside > that virtual host you will want to add your ProxyPass lines similar to my > example: [...] And just for reference, here's another working example with ProxyPass: NameVirtualHost 172.17.10.13 ServerName syslog.integritysi.com ServerAdmin [EMAIL PROTECTED] ProxyPass / http://vishnu.integritysi.com:8080/syslog/ ProxyPassReverse / http://vishnu.integritysi.com:8080/syslog/ ProxyPass /misc_ http://vishnu.integritysi.com:8080/misc_ ProxyPass /p_ http://vishnu.integritysi.com:8080/p_ ErrorLog logs/syslog.integritysi.com TransferLog logs/syslog.integritysi.com Good luck, and don't forget to enable the ProxyPass module. //glw ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Using ProxyPass and SiteRoot
It looks to me like you'd need the following in Apache's httpd.conf: NameVirtualHost 206.131.108.102 ServerName www.isd197.k12.mn.us ProxyPass / http://206.131.108.103:8080/ ProxyPassReverse / http://206.131.108.103:8080/ and the following settings in a SiteRoot object at the root of the Zope tree for the site: base: http://www.isd197.k12.mn.us path: / Timothy Wilson wrote: > I've been developing a new Zope site on a separate machine at > http://206.131.108.103:8080/ using just ZServer and I would like to use > ProxyPass to pass a request for www.isd197.k12.mn.us through to this new > site. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Using ProxyPass and SiteRoot
> Hi everyone, > > I've read the "Using Apache with ZServer (NOT Zope.cgi)" How-To and I find > that my situation is different enough from the ones described that I'm not > having any luck setting it up. I'd appreciate any suggestions on the > following: > > My current Zope site is at http://www.isd197.k12.mn.us/ which uses > Zope.cgi. There are a number of other static, non-Zope virtual hosts running > on that same machine representing a number of our elementary schools. > > I've been developing a new Zope site on a separate machine at > http://206.131.108.103:8080/ using just ZServer and I would like to use > ProxyPass to pass a request for www.isd197.k12.mn.us through to this new > site. > > Can someone suggest ProxyPass and SiteRoot settings that will make this > work? > > -Tim Timothy, Without going into too much detail, you are going to want to set up a virtual host in apache for the hostname www.isd197.k12.mn.us, and inside that virtual host you will want to add your ProxyPass lines similar to my example: ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/knight/www/phunc/html ServerName www.phunc.com ErrorLog /home/knight/www/phunc/logs/error_log CustomLog /home/knight/www/phunc/logs/access_log combined ScriptAlias /cgi-bin/ "/home/knight/www/cgi-bin/" RewriteEngine On RewriteLog "/home/knight/www/phunc/logs/rewrite_log" RewriteLogLevel 2 RewriteRule ^/cgi-bin/ - [L] RewriteRule ^/local/(.*) http://www.phunc.com/$1 [L] RewriteRule ^/(.*) http://www.phunc.com:8080/$1 [P] ProxyVia on Where I've used Rewrite, you will want to replace it with your ProxyPass lines. Keep in mind that _any_ requests for www.isd197.k12.mn.us will get passed to your zope site, and you will need to add "local" entries for directories you want to stay on the apache system for that FQDN. For the other non-Zope virtual hosts, just have them set up the same way they are most likely. Knight [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] 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] Using ProxyPass and SiteRoot
Hi everyone, I've read the "Using Apache with ZServer (NOT Zope.cgi)" How-To and I find that my situation is different enough from the ones described that I'm not having any luck setting it up. I'd appreciate any suggestions on the following: My current Zope site is at http://www.isd197.k12.mn.us/ which uses Zope.cgi. There are a number of other static, non-Zope virtual hosts running on that same machine representing a number of our elementary schools. I've been developing a new Zope site on a separate machine at http://206.131.108.103:8080/ using just ZServer and I would like to use ProxyPass to pass a request for www.isd197.k12.mn.us through to this new site. Can someone suggest ProxyPass and SiteRoot settings that will make this work? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ Zope maillist - [EMAIL PROTECTED] 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 )