[Zope] Re: Re: [ZOPE] Newbie Zope step 2.

Thierry thierry@glisco.it
Tue, 31 Aug 1999 16:11:17 +0200


Hi,

Put a slash in the file <zope directory>/lib/python/OFS/main.dtml, at line 9.


<FORM ACTION="<!--#var URL1-->/" METHOD="POST">
                                                                  ^^^
instead of

<FORM ACTION="<!--#var URL1-->" METHOD="POST">


Your Rewrite Rules are correct :

RewriteEngine On
RewriteLog /new/usr/apache/logs/rewrite_log
#RewriteLogLevel 9

RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/Zope/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 \
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]

If you use

^/Zope(.*) /home/httpd/cgi-bin/Zope.cgi$1

any URL starting with Zope will match which is not what you want.
If you use this rule :

    http://my.site.com/Zope_any_word _you_like

will be converted to :

 home/httpd/cgi-bin/Zope.cgi_any_word_you_like

which fails miserably, because there is not a CGI with that name.

Thierry

thierry@glisco.it
Glisco Srl Torino, Italy.
MIXADLIVE Srl Torino, Italy.
Institut Universitaire Professionalise
Genie Mathematique & Informatique
Avignon, France.