[Zope] Zope and Apche + PCGI???
Gordon Bergstrom
gordon@netg.se
Fri, 07 Apr 2000 08:44:08 +0200
This is a multi-part message in MIME format.
--------------7A9B8617F0326F167B1C6026
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Michel Pelletier wrote:
> Gordon Bergstrom wrote:
> >
> > Dear group.
> >
> > Just installed Zope and PCGI on a RH 6.2 system. Everything looks good
> > except that I can't login??? I saw that this might be due to that my
> > Apache can't Authenticate CGI. How do I make this work?
>
> There aren't really enough details here to say for sure. It is probably
> your RewriteRule but who can say? There are a number of How-Tos on the
> Zope site that explain this, and there is also a precompiled Apache with
> a very minimal .conf file available at
>
> http://www.zope.org/Members/michel/Projects/Zap/
>
> Be sure to read the release information, it alone might solve your
> problem.
>
> -Michel
Ok, I have installed the RPM's from RH Powertools and then I have added
this to /etc/httpd/conf/http.conf
<-------------- CODE------------>
RewriteEngine on
RewriteRule ^/static/(.*) /home/httpd/html/$1 [l]
RewriteRule ^/cgi-bin/(.*) /home/httpd/cgi-bin/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
<Directory /home/httpd/cgi-bin>
AllowOverride None
Options ExecCGI FollowSymLinks
</Directory>
<------------------------------>
And then made a ln- s from /var/zope/Zope.cgi Zope in /home/httpd/cgi-bin
This is the output from Zope when I tries to log in:
<-------------CODE------------>
<!--
Traceback (innermost last):
File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 214, in
publish_module
File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 179, in
publish
File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 151, in
publish
File /usr/share/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py,
line 245, in traverse
File /usr/lib/python1.5/site-packages/ZPublisher/HTTPResponse.py, line
551, in unauthorized
Unauthorized: (see above)
-->
<----------------------------->
Hope this tells more.
Regards
Gordon
--------------7A9B8617F0326F167B1C6026
Content-Type: text/x-vcard; charset=us-ascii;
name="gordon.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Gordon Bergstrom
Content-Disposition: attachment;
filename="gordon.vcf"
begin:vcard
n:Bergström;Gordon
tel;home:+46 (0)31 41 56 34
tel;work:+46 (0)31 50 79 48
x-mozilla-html:FALSE
url:http://www.netg.se
org:NetGuide - Terratel AB;Konsult
adr:;;;;;;
version:2.1
email;internet:gordon@netg.se
note:http://staff.netg.se/~gordon
x-mozilla-cpt:;22496
fn:Gordon Bergström
end:vcard
--------------7A9B8617F0326F167B1C6026--