[Zope] Zope and Apache configuration
Gustavo Bobeff
Gustavo.Bobeff@emn.fr
Wed, 22 Jan 2003 16:06:18 +0100
Yes, it was described in the step 4.
-- Gustavo
>-----Original Message-----
>From: Kevin Carlson [mailto:khcarlso@bellsouth.net]
>Sent: mercredi 22 janvier 2003 15:52
>To: gbobeff@info.emn.fr
>Cc: zope@zope.org; gbobeff@emn.fr
>Subject: Re: [Zope] Zope and Apache configuration
>
>Not sure if I understand the complete situation at first glance, but it
>looks like Apache needs to have an authentication password created.
Have
>you used "htpasswd" to do this?
>
>Kevin
>
>gbobeff@info.emn.fr wrote:
>
>>Hi,
>>I installed Zope and Apache in a windows 2000 platform.
>>
>>In order to configure Apache as the web server for Zope I have
followed
>the many instructions to do that but it seems to work except for the
>authentication. The following are the step I made:
>>
>>1- Copy Zope.cgi file to <apache-directory>/cgi-bin/Zope.cgi
>>
>>After that I tried to browse http://myHost/cgi-bin/Zope.cgi/manage and
it
>asked me the user and password, I put Zope's user and pass but it
doesn=92t
>work.
>>Then, I decided to follow the steps in 'Zope authentication with
existing
>web servers' in WEBSERVER.txt
>>2- I copied the following lines in the 'httpd.conf' file:
>>
>>RewriteEngine on
>>RewriteLog logs/apache_rewrite_log
>>RewriteLogLevel 0
>>RewriteCond %{HTTP:Authorization} ^(.*)
>>RewriteRule ^/Zope(.*) "E:\Program Files\Apache Group\Apache\cgi-
>bin\Zope.cgi\$1"
[e=3DHTTP_CGI_AUTHORIZATION:%1,t=3Dapplication/x-httpd-cgi,l]
>>
>>Even that it didn't work, I mean it still asked me for the user and
pass
>when I browsed through the Apache server but I cannot get the manage's
>page.
>>So, I decide go further and follow the steps in the section 'Allowing
your
>server to handle authentication itself'
>>
>>3- I create the 'access' file executing the command line:
>>E:\Web\ZopeSite>python zpasswd.py --username=3Dsuperuser
--password=3Dsuper
>access
>>
>>4- I create a user database for the Apache server performing the
command
>line:
>>E:\Program Files\Apache Group\Apache\bin>htpasswd users superuser
super
>>
>>5- I copied the following lines in the 'httpd.conf' file:
>><Location /cgi-bin/Zope/>
>>AuthType Basic
>>AuthName Zope-realm
>>AuthUserFile "E:\Program Files\Apache Group\Apache\bin\users"
>>require valid-user
>></Location>
>>
>>6- I shutdown Zope
>>7- I start Zope
>>8- I browse http://myHost/cgi-bin/Zope.cgi/manage and still I behave
as
>always, any user and password combination seems to be the right one.
>>
>>Anyway the Zope server still works by using its web server, I mean
through
>http://myHost:8080/manage
>>
>>So, obviously the question are:
>>I miss something during the configuration procedure?
>>Could be the spaces in the Apache's pathname the problem?
>>
>>Thanks
>>
>>
>>
>>___________________________________
>>EMN, http://www.emn.fr
>>
>>
>>
>>_______________________________________________
>>Zope maillist - Zope@zope.org
>>http://lists.zope.org/mailman/listinfo/zope
>>** No cross posts or HTML encoding! **
>>(Related lists -
>> http://lists.zope.org/mailman/listinfo/zope-announce
>> http://lists.zope.org/mailman/listinfo/zope-dev )
>>
>>
>>