I am not having much luck getting mod_rewrite to work with Zope. I am using Apache 1.3.9 and Zope 2.0.1 from rpm. If I turn off rewriting, I can access http://servername/cgi-bin/Zope.cgi just fine and I can get to the management screen. However, I'd like the rewrite to work. Right now all it returns with rewrite on is: Forbidden You don't have permission to access / on this server. Apache/1.3.9 Server at caldhcp082.arc.ab.ca Port 80 I have tried the following in httpd.conf: RewriteEngine on RewriteLogLevel 9 RewriteLog /var/log/httpd/rewrite_log RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) /home/httpd/cgi-bin/Zope.cgi$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] as per the instructions found at: http://www.zope.org/Members/cavnit/apachevirt When I do this, the httpd error_log shows the following: [Tue Jan 4 14:03:38 2000] [error] [client 128.144.2.51] Options ExecCGI is off in this directory: /home/httpd/cgi-bin/Zope.cgi However, my httpd.conf contains: <Directory "/home/httpd/cgi-bin"> AllowOverride None Options ExecCGI FollowSymLinks Order allow,deny Allow from all </Directory> The rewrite log contains: 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (2) init rewrite engine with requested uri / 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (3) applying pattern '^(.*)' to uri '/' 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (4) RewriteCond: input='' pattern='^(.*)' => matched 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (2) rewrite / -> /home/httpd/cgi-bin/Zope.cgi/ 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (5) setting env variable 'HTTP_CGI_AUTHORIZATION' to '' 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (2) remember /home/httpd/cgi-bin/Zope.cgi/ to have MIME-type 'application/x-httpd-cgi' 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (2) local path result: /home/httpd/cgi-bin/Zope.cgi/ 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (1) go-ahead with /home/httpd/cgi-bin/Zope.cgi/ [OK] 128.144.2.51 - - [04/Jan/2000:14:03:38 -0700] [caldhcp082.arc.ab.ca/sid#815eed4][rid#8162ef4/initial] (1) force filename /home/httpd/cgi-bin/Zope.cgi to have MIME-type 'application/x-httpd-cgi' Any ideas? Thanks. -- Guy Davis mailto:davis@arc.ab.ca (403) 210-5334 Alberta Research Council
participants (1)
-
Guy Davis