[Zope] Zope-Apache Virtualhosting problem
Jens Vagelpohl
tommymi@concentric.net
Fri, 01 Oct 1999 13:24:14 GMT
hi roche,
change the line that says:
> RewriteCond ^/Zope(*.) /home/httpd/cgi-bin/Zope.cgi/$1
> [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
and remove the "/" forward slash between "Zope.cgi" and "$1".
the line should read:
RewriteCond ^/Zope(*.) /home/httpd/cgi-bin/Zope.cgi$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
that should help
jens
Jens Vagelpohl
Systems Administrator
Washtenaw Development Council
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 10/1/99, 8:49:33 AM, "Roché Compaan" <sparroy@adept.co.za> wrote
regarding [Zope] Zope-Apache Virtualhosting problem:
> I'm trying to set up Apache and Zope with virtual hosts and I'm
struggling a
> bit with the final hurdle. I've only tried to deliver Zope pages on
the one
> virtual hosts. My entry in my apache virtual host looks like this:
> RewriteEngine on
> RewriteCond %{HTTP:Authorization} ^(.*)
> RewriteCond ^/Zope(*.) /home/httpd/cgi-bin/Zope.cgi/$1
> [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
> When I open my browser at http://www.mydomain.com/Zope Zope does
prompt me
> for a username and password. But it does not except my username and
> password (the one displayed after you ran the zope install script). I
even
> tried to change the password with python zpasswd.py script. I still
get the
> following error:
> Zope Error
> Zope has encountered an error while publishing this resource.
> Unauthorized
> You are not authorized to access this resource.
> Username and password are not correct.
> ______________________________________________________
> Traceback (innermost last):
> File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 214, in
> publish_module
> File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 179, in
> publish
> File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 151, in
> publish
> File /usr/local/Zope2/lib/python/ZPublisher/BaseRequest.py, line
442, in
> traverse
> File /usr/local/Zope2/lib/python/ZPublisher/HTTPResponse.py, line
549, in
> unauthorized
> Unauthorized: (see above)
> Greetings
> Roché Compaan
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> (Related lists - please, no cross posts or HTML encoding!
> 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 )