Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
6e39b21f
Commit
6e39b21f
authored
Sep 09, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added IIS 4.0 hints from Martijn Pieters and untabbified.
parent
fa947c38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
30 deletions
+56
-30
doc/WEBSERVER.txt
doc/WEBSERVER.txt
+56
-30
No files found.
doc/WEBSERVER.txt
View file @
6e39b21f
...
...
@@ -182,53 +182,53 @@ Zope authentication with existing web servers
Get Apache to authenticate /cgi-bin/Zope
Add a directive in your Apache configuration file such as::
Add a directive in your Apache configuration file such as::
<Location /cgi-bin/Zope/>
AuthType Basic
AuthName Zope-realm
AuthUserFile /usr/local/etc/httpd/conf/ru_users
require valid-user
</Location>
<Location /cgi-bin/Zope/>
AuthType Basic
AuthName Zope-realm
AuthUserFile /usr/local/etc/httpd/conf/ru_users
require valid-user
</Location>
Then send Apache a '-1' signal to tell it to re-read its
configuration files.
Then send Apache a '-1' signal to tell it to re-read its
configuration files.
*Note*: The above presumes that '/cgi-bin/Zope' has been made
executable by some other Apache directive in the configuration
file.
*Note*: The above presumes that '/cgi-bin/Zope' has been made
executable by some other Apache directive in the configuration
file.
Ensure Apache has 'superuser'
Using Apache's tools for managing a user database, make
sure that the 'AuthUserFile' defined above has a valid user
called 'superuser'.
Using Apache's tools for managing a user database, make
sure that the 'AuthUserFile' defined above has a valid user
called 'superuser'.
Get Zope to use Apache's authentication
Change Zope's access file to contain just the superuser
id followed by a colon, as in::
Change Zope's access file to contain just the superuser
id followed by a colon, as in::
superuser:
superuser:
Note that this can be any value, including spaces. The only
restriction is that the value must match a user defined in
Apache's user database.
Note that this can be any value, including spaces. The only
restriction is that the value must match a user defined in
Apache's user database.
Shut down Zope by doing::
Shut down Zope by doing::
kill `cat var/Main.pid`
kill `cat var/Main.pid`
from the Zope directory.
from the Zope directory.
Configure Zope
At this point you are able to log in using the "superuser"
identity. If you want other people defined in the Apache user
database to have identities in Zope, you need to add them to
a User Folder (the object whose ID is acl_users). Either click on
the pre-defined acl_users in the top folder or add a User Folder
object to a subfolder.
At this point you are able to log in using the "superuser"
identity. If you want other people defined in the Apache user
database to have identities in Zope, you need to add them to
a User Folder (the object whose ID is acl_users). Either click on
the pre-defined acl_users in the top folder or add a User Folder
object to a subfolder.
Specific web servers
...
...
@@ -265,6 +265,32 @@ Zope authentication with existing web servers
* An ISAPI module to support PCGI is under development.
* IIS 4.0 throws away Zope's error messages by default. This behavior
can create quite a few problems, including authentication problems.
Microsoft prides itself on the clear error messages that IIS 4.0 presents,
when the user makes a mistake. These error messages are implemented in the
form of Custom Error handlers, that return a file, or URL to a user when a
certain error occurs.
This means, that when you forget to fill in an Id when you want to create,
say, a new SQL Method, Zope's clear error message is replaced by IIS's
totally irrelevant error message. Also, it completely breaks authentication
when the user uses IE5.0 when trying to log into a secure area of the
server. These Custom Error handlers are enabled by default.
Luckily, the handlers can quite easily be switched off:
Open the IIS website in the Management Console, and navigate to the folder
you put the PCGI executable in. If you named your Zope installation 'Zope',
it will be called 'Zope.exe'. Double-click on that file. A property page
will appear. Select the 'Custom Errors' tab. Now, select every HTTP Error
code in the listbox that doesn't have type 'Default', and click on the 'Set
to Default' button for each one. This will disable IIS overriding the error
message returned by Zope.
Click OK, and voila, Zope is allowed to tell the world what it thinks went
wrong.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment