Fixed #5782 -- Fixed a small typo spotted by obeattie.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-10-20 04:16:40 +00:00
parent 3e3a7e0258
commit 3ea87fb9c0
1 changed files with 11 additions and 11 deletions

View File

@ -28,21 +28,21 @@ with the standard ``Auth*`` and ``Require`` directives::
SetEnv DJANGO_SETTINGS_MODULE mysite.settings SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonAuthenHandler django.contrib.auth.handlers.modpython PythonAuthenHandler django.contrib.auth.handlers.modpython
</Location> </Location>
.. admonition:: Using the authentication handler with Apache 2.2 .. admonition:: Using the authentication handler with Apache 2.2
If you're using Apache 2.2, you'll need to take a couple extra steps. If you're using Apache 2.2, you'll need to take a couple extra steps.
You'll need to ensure that ``mod_auth_basic`` and ``mod_authz_user`` You'll need to ensure that ``mod_auth_basic`` and ``mod_authz_user``
are loaded. These might be compiled statically into Apache, or you might are loaded. These might be compiled statically into Apache, or you might
need to use ``LoadModule`` to load them dynamically (as shown in the need to use ``LoadModule`` to load them dynamically (as shown in the
example at the bottom of this note). example at the bottom of this note).
You'll also need to insert configuration directives that prevent Apache You'll also need to insert configuration directives that prevent Apache
from trying to use other authentication modules. Depending on which other from trying to use other authentication modules. Depending on which other
authentication modules you have loaded, you might need one or more of authentication modules you have loaded, you might need one or more of
the following directives:: the following directives::
AuthBasicAuthoritative Off AuthBasicAuthoritative Off
AuthDefaultAuthoritative Off AuthDefaultAuthoritative Off
AuthzLDAPAuthoritative Off AuthzLDAPAuthoritative Off
@ -51,18 +51,18 @@ with the standard ``Auth*`` and ``Require`` directives::
AuthzGroupFileAuthoritative Off AuthzGroupFileAuthoritative Off
AuthzOwnerAuthoritative Off AuthzOwnerAuthoritative Off
AuthzUserAuthoritative Off AuthzUserAuthoritative Off
A complete configuration, with differences between Apache 2.0 and A complete configuration, with differences between Apache 2.0 and
Apache 2.2 marked in bold, would look something like: Apache 2.2 marked in bold, would look something like:
.. parsed-literal:: .. parsed-literal::
**LoadModule auth_basic_module modules/mod_auth_basic.so** **LoadModule auth_basic_module modules/mod_auth_basic.so**
**LoadModule authz_user_module modules/mod_authz_user.so** **LoadModule authz_user_module modules/mod_authz_user.so**
... ...
<Location /exmaple/> <Location /example/>
AuthType Basic AuthType Basic
AuthName "example.com" AuthName "example.com"
**AuthBasicAuthoritative Off** **AuthBasicAuthoritative Off**
@ -71,7 +71,7 @@ with the standard ``Auth*`` and ``Require`` directives::
SetEnv DJANGO_SETTINGS_MODULE mysite.settings SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonAuthenHandler django.contrib.auth.handlers.modpython PythonAuthenHandler django.contrib.auth.handlers.modpython
</Location> </Location>
By default, the authentication handler will limit access to the ``/example/`` By default, the authentication handler will limit access to the ``/example/``
location to users marked as staff members. You can use a set of location to users marked as staff members. You can use a set of
``PythonOption`` directives to modify this behavior: ``PythonOption`` directives to modify this behavior: