[Zope] Apache + Zope + Authentication

Erick Mechler emechler@rescomp.berkeley.edu
Sun, 14 Nov 1999 22:26:08 -0800


Thanks everyone for your help, but I'm still not getting it to work.  Here again is
the modified version of my httpd.conf:

<Directory "/">
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Options +ExecCGI
        # allows Apache to pass authentication headers to zope
        RewriteEngine on
        RewriteCond %{HTTP:Authorization} ^(.*)
        RewriteRule ^/Zope(.*) /export/www/cgi-bin/Zope.cgi$1 \
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
</Directory>

RewriteLog /var/log/apache/rewrite_log
RewriteLogLevel 9

(Note that the two last lines are actually one).

BTW, Thomas, making the changes that you suggested didn't let me go to
http://my.machine.tld/Zope and access the Zope welcome screen; I got a file not
found.

I also neglected to tell you all that I'm running Apache 1.3.9 on Linux 2.2.12
kernel.

Thanks again for your time.
Erick

At Sun, Nov 14, 1999 at 11:24:05PM -0500, Jens Vagelpohl said this:
:: hi erick,
:: 
:: try the following:
:: 
:: replace your line:
:: > 	RewriteRule ^/(.*) $1 [ENV=HTTP_CGI_AUTHORIZATION:%1]
:: 
:: with
:: 
:: RewriteRule ^(.*) <location of Zope.cgi>$1 [e=HTTP_CGI_AUTHORIZATION:
:: %1,t=application/x-httpd-cgi,l]
:: 
:: works for me :)
:: 
:: the $1 alone sends it nowhere, you need to prefix the full path to your
:: zope.cgi file.
:: 
:: jens
::