Use rewriting rules, eg:
ProxyPassReverse / http://www.mysite.com:1485/ RewriteEngine On RewriteLogLevel 0 RewriteLog "/var/log/httpd/rewrite_log" RewriteRule ^/stat/ - [L] RewriteRule ^/(.*) http://www.mysite.com:1485/$1 [P]
What do you need ProxyPassReverse for, when you use Rewrite? I too think, that Rewrite is a better solution, but there should be the Rewrite Module compiled in or loaded as a DSO by Apache. -goe- http://www.goeldi.com/e/ _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
First of all, i would like to thanks for your attention. I set up this configuration on my server without ProxyPassReverse and everything is going fine. The performance, regarding i was using pcgi is very good. But i´ve noticed something strange. Some pages are rendered in the right form, but there are some cases that in the rendering process, Zope put in the top of the html a base href tag and transform all links in that page to relatives. And the bad thing is, this base href correspond to the Zserver link. So, i will lose that logs. How can i correct this ? To avoid this base href and keep in all pages the original link? Best regards Rodrigo
Use rewriting rules, eg:
ProxyPassReverse / http://www.mysite.com:1485/ RewriteEngine On RewriteLogLevel 0 RewriteLog "/var/log/httpd/rewrite_log" RewriteRule ^/stat/ - [L] RewriteRule ^/(.*) http://www.mysite.com:1485/$1 [P]
What do you need ProxyPassReverse for, when you use Rewrite? I too think, that Rewrite is a better solution, but there should be the Rewrite Module compiled in or loaded as a DSO by Apache. -goe- http://www.goeldi.com/e/ _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _______________________________________________ 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 )
I got it, i will have to use the path to pass a parameter to z2.py --host-server that will specify the name of the URL that will be the default. The base href will be the proxy one alright? Another question. I am using Zope 2.3.0. Why this is not implemented? Regards all First of all, i would like to thanks for your attention. I set up this configuration on my server without ProxyPassReverse and everything is going fine. The performance, regarding i was using pcgi is very good. But i´ve noticed something strange. Some pages are rendered in the right form, but there are some cases that in the rendering process, Zope put in the top of the html a base href tag and transform all links in that page to relatives. And the bad thing is, this base href correspond to the Zserver link. So, i will lose that logs. How can i correct this ? To avoid this base href and keep in all pages the original link? Best regards Rodrigo
Use rewriting rules, eg:
ProxyPassReverse / http://www.mysite.com:1485/ RewriteEngine On RewriteLogLevel 0 RewriteLog "/var/log/httpd/rewrite_log" RewriteRule ^/stat/ - [L] RewriteRule ^/(.*) http://www.mysite.com:1485/$1 [P]
What do you need ProxyPassReverse for, when you use Rewrite? I too think, that Rewrite is a better solution, but there should be the Rewrite Module compiled in or loaded as a DSO by Apache. -goe- http://www.goeldi.com/e/ _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _______________________________________________ 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 http://lists.zope.org/mailman/listinfo/zope-dev )
On Thu, 22 Feb 2001, Stephan Goeldi wrote:
Use rewriting rules, eg:
ProxyPassReverse / http://www.mysite.com:1485/ RewriteEngine On RewriteLogLevel 0 RewriteLog "/var/log/httpd/rewrite_log" RewriteRule ^/stat/ - [L] RewriteRule ^/(.*) http://www.mysite.com:1485/$1 [P]
What do you need ProxyPassReverse for, when you use Rewrite?
I'd like to add my confusion to the mix here. I've followed this thread, but I haven't been able to discern the definitive answer here. Simple question follows: Is it possible to use ProxyPass (and thus avoiding PCGI) to serve Zope directly from ZServer and still have Apache serve some static content for the same host? For example, I'd like to install webalizer on my Web server for some slick graphs and summaries of hits, page views, etc. On a non-Zope site, you view those web log reports by visiting http://www.foo.com/webalizer Can I send all requests except for /webalizer to ZServer using ProxyPass? -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/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
Timothy Wilson wrote:
On Thu, 22 Feb 2001, Stephan Goeldi wrote:
Use rewriting rules, eg:
ProxyPassReverse / http://www.mysite.com:1485/ RewriteEngine On RewriteLogLevel 0 RewriteLog "/var/log/httpd/rewrite_log" RewriteRule ^/stat/ - [L] RewriteRule ^/(.*) http://www.mysite.com:1485/$1 [P]
What do you need ProxyPassReverse for, when you use Rewrite?
I'd like to add my confusion to the mix here. I've followed this thread, but I haven't been able to discern the definitive answer here. Simple question follows:
Is it possible to use ProxyPass (and thus avoiding PCGI) to serve Zope directly from ZServer and still have Apache serve some static content for the same host?
For example, I'd like to install webalizer on my Web server for some slick graphs and summaries of hits, page views, etc. On a non-Zope site, you view those web log reports by visiting http://www.foo.com/webalizer
Can I send all requests except for /webalizer to ZServer using ProxyPass?
That's exactly what I do, down to the webalizer! The above should do it, see the following howtos for more info: http://www.zope.org/Members/anser/apache_zserver http://www.zope.org/Members/shaw/HowTo/ApacheFrontEnd The one thing I haven't got round to fixing is the apache icons, as it looks for them in /icons as it browses the static directories and that is currently being proxied over to zope. Ivan
Stephan Goeldi wrote:
Use rewriting rules, eg:
ProxyPassReverse / http://www.mysite.com:1485/ RewriteEngine On RewriteLogLevel 0 RewriteLog "/var/log/httpd/rewrite_log" RewriteRule ^/stat/ - [L] RewriteRule ^/(.*) http://www.mysite.com:1485/$1 [P]
What do you need ProxyPassReverse for, when you use Rewrite?
I too think, that Rewrite is a better solution, but there should be the Rewrite Module compiled in or loaded as a DSO by Apache.
I can't take any credit for the above, I've got it all straight out of zope howtos: http://www.zope.org/Members/anser/apache_zserver http://www.zope.org/Members/shaw/HowTo/ApacheFrontEnd http://www.zope.org/Members/jec/virtual_howto_html Excpet I can't find the ProxyPassReverse line! However, as I understand it, it is requied for redirects to work, by fixing up the location header: http://www.apacheref.com/ref/mod_proxy/ProxyPassReverse.html Ivan
participants (4)
-
Ivan Cornell -
rleme@idg.com.br -
Stephan Goeldi -
Timothy Wilson