[Zope] zope in apache 1.3.6 [doesn't work with 2.0]
Joshua Brauer
joshua@brauer.org
Mon, 9 Aug 1999 13:06:22 -0600
I've asked several times about what changed between 1.x and 2.0bx for this.
This set of rules works for 1.x (even with a custom compiled Apache)
RewriteEngine on
RewriteLog logs/whateverlog
RewriteLogLevel 0
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/(.*) /websites/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
However, it doesn't work with Zope 2.0. The only error I can get is this (in the Apache Error log):
Premature end of script headers: /websites/Zope2/Zope.cgi
Josh
At 1:14 PM -0500 8/9/99, Perez, Victor wrote:
>Answering to myself, if you have Redhat 6.0 with the bundled apache 1.3.6,
>install the zope rpm and add the following in /etc/httpd/conf/httpd.conf:
>
>RewriteEngine on
>RewriteLog /var/log/httpd/rewrite.log
>RewriteLogLevel 0
>RewriteCond %{REQUEST_FILENAME} ^/(.*)
>RewriteRule ^/(.*) /home/httpd/$1 [t=application/x-httpd-cgi]
>RewriteCond %{HTTP:Authorization} ^(.+)
>RewriteRule ^/(.*) /$1 [ENV=HTTP_CGI_AUTHORIZATION:%1]
>
>The rewrite rules were taken from a message posted by Andy Dustman on this
>list, I've removed the first RewriteCond/Rewrite rule pair, and fixed a
>little the path.
>
>Now I tried to set it up on a production server, but its apache is
>custom-compiled so doesn't work. The funny thing is, the rewrite.log file is
>not loggin a thing. Any ideas about this one?
>
>-
>Atentamente,
>Victor Perez Muena
>IS&T Support - Port Area (Los Vilos)
>Los Pelambres Project - Bechtel Chile Ltda.
>Ext. 8033, Phone: (2) 361-8033 - Fax: (2) 361-8025
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(To receive general Zope announcements, see:
>http://www.zope.org/mailman/listinfo/zope-announce
>
>For developer-specific issues, zope-dev@zope.org -
>http://www.zope.org/mailman/listinfo/zope-dev )
# # #
_____________________________________________
Joshua Brauer Box 915
http://www.brauer.org Fort Collins, CO 80522
Fax: (419) 793-4120
_____________________________________________
In flying I have learned that carelessness and overconfidence are
usually far more dangerous than deliberately accepted risks.
-- Wilbur Wright in a letter to his father, September 1900
_____________________________________________________