How can I proxy from apache to zope and keep source host info?
I configure 'apache as frontent do zope'. Most things work as expected but I found serious limitation: if I pass request from apache to zope via mod_proxy (or mod_rewrite [P]), zope sees all requests as coming from localhost (I specified http://localhost:8080/ as zope address, in case I specify http://my.host:8080 I would get my.host as source address - the problem would be the same). Does there exist any solution to this problem different than using zope.cgi? -- Marcin.Kasperski | Communication takes place between people, documents @softax.com.pl | are secondary. (Booch,Martin,Newkirk) Marcin.Kasperski | @bigfoot.com |
There is a patch to Apache that you could apply that passes the client IP along in a different HTTP header, if that helps. It's at http://modules.apache.org/search?id=124. On the other hand you could use Squid as the Proxy as it has a config directive for just this occasion. HTH Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Marcin Kasperski" <Marcin.Kasperski@softax.com.pl> To: "Zope List Submission" <zope@zope.org> Sent: Wednesday, July 26, 2000 8:26 AM Subject: [Zope] How can I proxy from apache to zope and keep source host info?
I configure 'apache as frontent do zope'. Most things work as expected but I found serious limitation: if I pass request from apache to zope via mod_proxy (or mod_rewrite [P]), zope sees all requests as coming from localhost (I specified http://localhost:8080/ as zope address, in case I specify http://my.host:8080 I would get my.host as source address - the problem would be the same).
Does there exist any solution to this problem different than using zope.cgi?
-- Marcin.Kasperski | Communication takes place between people, documents @softax.com.pl | are secondary. (Booch,Martin,Newkirk) Marcin.Kasperski | @bigfoot.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 )
Phil Harris wrote:
There is a patch to Apache that you could apply that passes the client IP along in a different HTTP header, if that helps.
Does anyone has this module compiled for apache 1.3 handy (I mean mod_add_proxy.so file)? I use binary Debian apache distribution and it will take some time to download and rebuild apache from sources... -- www.mk.maxi.pl | Teams do not make linear progress through analysis. Marcin.Kasperski | They don't start with requirement 1 and analyze it, @softax.com.pl | then move to requirement 2 and analyze it. (...) @bigfoot.com | Analysis tends to be revolutionary. (Martin)
participants (2)
-
Marcin Kasperski -
Phil Harris