[Zope] Apache ProxyPass to Zope

Russell Seymour russell.seymour at turtlesystems.co.uk
Thu Oct 28 12:26:27 EDT 2004


Good evening list,

I have been trying to get the REMOTE_USER variable to be seen by Zope.  
I have almost got there by using various articles on the Internet, but I 
need a little bit of help to get the last bit working.

I have got Apache performing the authentication and this works well as I 
get the Zope page when I enter a valid username and password.  I have 
noticed that the Z2 log file for my Zope instances contains the username 
that I have used to access the site, but I cannot get Zope itself to see 
the username - this is the most confusing bit for me as it surely means 
that the username is being passed to Zope.

The following is a snippet from my Apache:

<Location /zope>
    AuthName "Zope Access"
    AuthType Basic

    <AUTHENTICATION ROUTINES>
    require valid-user

    ProxyPass http://x.x.x.x:8080/zope

</Location>

ProxyPassReverse /zope http://x.x.x.x:8080/zope

This all works brilliantly apart from the fact that I cannot get the 
username in Zope.  I need this do I can do some custom authorisation to 
a database that my Zope application accesses.

I have tried many different variations using RewriteRule and trying to 
set the environment variables but to no avail.

Thanks to anyone that can give me some pointers.

Russell


More information about the Zope mailing list