Changeset 6540
- Timestamp:
- 10/19/07 23:16:40 (11 months ago)
- Files:
-
- django/trunk/docs/apache_auth.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/apache_auth.txt
r6347 r6540 29 29 PythonAuthenHandler django.contrib.auth.handlers.modpython 30 30 </Location> 31 31 32 32 .. admonition:: Using the authentication handler with Apache 2.2 33 33 34 34 If you're using Apache 2.2, you'll need to take a couple extra steps. 35 35 36 36 You'll need to ensure that ``mod_auth_basic`` and ``mod_authz_user`` 37 37 are loaded. These might be compiled statically into Apache, or you might 38 38 need to use ``LoadModule`` to load them dynamically (as shown in the 39 39 example at the bottom of this note). 40 40 41 41 You'll also need to insert configuration directives that prevent Apache 42 42 from trying to use other authentication modules. Depending on which other 43 43 authentication modules you have loaded, you might need one or more of 44 44 the following directives:: 45 45 46 46 AuthBasicAuthoritative Off 47 47 AuthDefaultAuthoritative Off … … 52 52 AuthzOwnerAuthoritative Off 53 53 AuthzUserAuthoritative Off 54 54 55 55 A complete configuration, with differences between Apache 2.0 and 56 56 Apache 2.2 marked in bold, would look something like: 57 57 58 58 .. parsed-literal:: 59 59 60 60 **LoadModule auth_basic_module modules/mod_auth_basic.so** 61 61 **LoadModule authz_user_module modules/mod_authz_user.so** 62 62 63 63 ... 64 65 <Location /ex maple/>64 65 <Location /example/> 66 66 AuthType Basic 67 67 AuthName "example.com" … … 72 72 PythonAuthenHandler django.contrib.auth.handlers.modpython 73 73 </Location> 74 74 75 75 By default, the authentication handler will limit access to the ``/example/`` 76 76 location to users marked as staff members. You can use a set of
