Re: [Zope] SiteAccess-Apache: passing HOST header
Simon Coles wrote: > > We started to write it up on Zope.org but it appears we never > completed the HOW-TO. I'll get on it. Having been spured into action, I have now knocked the HowTo into a reasonable shape. You can see it at: http://www.zope.org/Members/stephen/ApacheProxyPatch if it's not clear in any way then send me an email and I'll try to make it clearer. Cheers, Stephen -- Stephen Harrison[EMAIL PROTECTED] New Information Paradigms www.nipltd.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] SiteAccess-Apache: passing HOST header
>Does anybody know how to convince Apache to pass >the information from the HTTP HOST header down to ZServer. We patched Apache to do this - in proxy_http.c, comment out the lines that remove the incoming HOST header and inserts a new one. We started to write it up on Zope.org but it appears we never completed the HOW-TO. I'll get on it. Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] SiteAccess-Apache: passing HOST header
"Dr. Dieter Maurer" wrote: > > Does anybody know how to convince Apache to pass > the information from the HTTP HOST header down to ZServer. > > This would be very useful for SiteAccess Access Rules. > I asked similar question about week ago. Someone advised me to use non-standard apache module mod_proxy_and_forward. I must admit, I has not tried it yet (I use binary apache distribution and I still have no time to find apache sources and compile them). -- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl | | A complex system that works is invariably found to have evolved from a | simple system that worked. A complex system designed from scratch | never works and cannot be patched to make it work. (Booch) ___ 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] SiteAccess-Apache: passing HOST header
On Wed, Aug 09, 2000 at 12:25:32PM +0200, Dr. Dieter Maurer wrote: > Does anybody know how to convince Apache to pass > the information from the HTTP HOST header down to ZServer. > > This would be very useful for SiteAccess Access Rules. HTTP_HOST _is_ passed on to ZServer. I built a generic ProxyPassCleanup external method for use as a SiteAcces 2 Access Rule that relies on it: import string def cleanup(self): REQUEST = getattr(self, 'REQUEST', None) if not REQUEST: return 'No REQUEST found' if not REQUEST.has_key('HTTP_HOST'): return 'No Host found' parts = string.split(REQUEST.HTTP_HOST, ':') host = parts[0] port = (len(parts) > 1 and parts[1]) or 80 # Assume default http port REQUEST.setServerURL(hostname=host, port=port) return 'Server URL changed to %s:%s' % (host, port) Just run it as an external method before you assign it as the Access Rule and it will give you a diagnostic message. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] SiteAccess-Apache: passing HOST header
Does anybody know how to convince Apache to pass the information from the HTTP HOST header down to ZServer. This would be very useful for SiteAccess Access Rules. Dieter ___ 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 )