RE: [Zope] Zope Apache/ProxyPass : environment variables

2000-10-31 Thread Aaron Straup Cope

Thanks. It appears, though, that there is no way to do this without
appending a query string to the redirected URL. Is this correct?

I'd like to be able to perform all authentication in Apache-land on the
SSL and, if successful, hand the request off the Zope. The thing is, I
still need to know who's actually authenticated once they readch
Zope-world and assinging REMOTE_USER to a request parameter doesn't make
me very comfortable.

Alas...

On Tue, 31 Oct 2000, TFE WSD JARVIS JOHN wrote:

 Yes, but you have to do in it a round about way.
 (Actually, I've seen mention of a patch to Apache that 
 does this, but I don't think it's neccessary)
 
 Here's the setup I'm using:
 RewriteEngine On
 RewriteRule ^/Zope(.*)   http://localhost:8080/$1?client_ip=%{REMOTE_ADDR}
 [QSA,L,P]
 RewriteRule ^/p_/(.*)http://localhost:8080/p_/$1 [L,P]
 RewriteRule ^/misc_/(.*) http://localhost:8080/misc_/$1 [L,P]
 
 In this case, REMOTE_ADDR will be available in the 
 REQUEST namespace under "client_ip"
 
 HTH
 
  -Original Message-
  From:   Aaron Straup Cope [SMTP:[EMAIL PROTECTED]]
  Sent:   Tuesday, October 31, 2000 5:47 AM
  To: [EMAIL PROTECTED]
  Subject:    [Zope] Zope  Apache/ProxyPass : environment variables
  
  Hi,
  
  Does anyone know if it is even *possible* to pass environment variables
  (specifically REMOTE_USER) to Zope when it is set up behind
  Apache/ProxyPass.
  
  I've looked around the list archives, and the Apache docs and tried a
  bunch of different configs but nothing works. I'm starting to wonder if
  it's all in vain.
  
  Thanks,
  
  
  
  ___
  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 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] Zope Apache/ProxyPass : environment variables

2000-10-31 Thread Evan Simpson

From: Aaron Straup Cope [EMAIL PROTECTED]
 Thanks. It appears, though, that there is no way to do this without
 appending a query string to the redirected URL. Is this correct?

That, or mangling the URL in some way and then unmangling on the Zope end.  If someone 
out there has
any experience with Apache modules, they could earn the undying gratitude of many 
Zopistas by
enhancing mod_forwarding to do this sort of thing.

Cheers,

Evan @ digicool  4-am


___
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] Zope Apache/ProxyPass : environment variables

2000-10-31 Thread Dieter Maurer

Aaron Straup Cope writes:
  I'd like to be able to perform all authentication in Apache-land on the
  SSL and, if successful, hand the request off the Zope. The thing is, I
  still need to know who's actually authenticated once they readch
  Zope-world and assinging REMOTE_USER to a request parameter doesn't make
  me very comfortable.
  
  Alas...
The "doc/WEBSERVERS.txt" contains some information about
how to convince Apache to pass "REMOTE_USER".

I am not sure, it will be enough for you.



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 )




[Zope] Zope Apache/ProxyPass : environment variables

2000-10-30 Thread Aaron Straup Cope

Hi,

Does anyone know if it is even *possible* to pass environment variables
(specifically REMOTE_USER) to Zope when it is set up behind
Apache/ProxyPass.

I've looked around the list archives, and the Apache docs and tried a
bunch of different configs but nothing works. I'm starting to wonder if
it's all in vain.

Thanks,



___
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] Zope Apache/ProxyPass : environment variables

2000-10-30 Thread TFE WSD JARVIS JOHN

Yes, but you have to do in it a round about way.
(Actually, I've seen mention of a patch to Apache that 
does this, but I don't think it's neccessary)

Here's the setup I'm using:
RewriteEngine On
RewriteRule ^/Zope(.*)   http://localhost:8080/$1?client_ip=%{REMOTE_ADDR}
[QSA,L,P]
RewriteRule ^/p_/(.*)http://localhost:8080/p_/$1 [L,P]
RewriteRule ^/misc_/(.*) http://localhost:8080/misc_/$1 [L,P]

In this case, REMOTE_ADDR will be available in the 
REQUEST namespace under "client_ip"

HTH

 -Original Message-
 From: Aaron Straup Cope [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, October 31, 2000 5:47 AM
 To:   [EMAIL PROTECTED]
 Subject:      [Zope] Zope  Apache/ProxyPass : environment variables
 
 Hi,
 
 Does anyone know if it is even *possible* to pass environment variables
 (specifically REMOTE_USER) to Zope when it is set up behind
 Apache/ProxyPass.
 
 I've looked around the list archives, and the Apache docs and tried a
 bunch of different configs but nothing works. I'm starting to wonder if
 it's all in vain.
 
 Thanks,
 
 
 
 ___
 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 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 )