[Zope] RewriteRule for Zope.cgi
Robert W. Canary
rwcanary@ohiocounty.net
Wed, 09 Jun 1999 21:50:42 -0500
Hi,
Seem to be having trouble getting my RewriteRule correct for
authenticating. Cn some one take a look and see what is I am doing
wrong here. This is a RHL 5.2, with Apache-1.3.3. The rewrite is the
last entry in the /etc/httpd/conf/httpd.conf
RewriteEngine on
RewriteLog /var/log/httpd/ap_rewrite_log
RewriteLogLevel 9
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/cgi-bin/Zope(.*) /cgi-bin/Zope$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
The Zope.cgi is located in /home/httpd/cgi-bin/Zope.cgi. This directory
is recognized by appache as an cgi directory with this entry in the
/etc/httpd/conf/access.conf:
<Directory /home/httpd/cgi-bin>
AllowOverride None
Options ExecCGI
</Directory>
Owner nobody rwxr-xr-x
/var/local/zope nobody rwxr-xr-x
/var/local/zope/* nobody rwxr-xr-x
When I go to /www.ohiocounty.net/cgi-bin/Zope.cgi I get an error 403
Forbidden.
Here is what I get in the rewrite log: ( i cut the date and time string)
(2) init rewrite engine with requested uri /cgi-bin/Zope.cgi
(3) applying pattern '^/cgi-bin/Zope(.*)' to uri '/cgi-bin/Zope.cgi'
(4) RewriteCond: input='' pattern='^(.*)' => matched
(2) rewrite /cgi-bin/Zope.cgi -> /cgi-bin/Zope.cgi
(5) setting env variable 'HTTP_CGI_AUTHORIZATION' to ''
(2) remember /cgi-bin/Zope.cgi to have MIME-type
'application/x-httpd-cgi'(2) local path result: /cgi-bin/Zope.cgi
(2) prefixed with document_root to /home/httpd/html/cgi-bin/Zope.cgi
(1) go-ahead with /home/httpd/html/cgi-bin/Zope.cgi[OK]
(1) force filename /home/httpd/html/cgi-bin to have MIME-type
'application/x-httpd-cgi'
Thanks in advance :-)
--
robert canary
system services
OhioCounty.Net
rwcanary@ohiocounty.net
(270)298-9331 Office
(270)298-7449 Fax