Re: Apache mod_wsgi and auth handlers
Graham Dumpleton <[email protected]> Wed, 3 Mar 2010 20:16:06 +1100
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
2010/3/3 S=C5=82awomir Osoba <sosoba-FWL6JbJ8cJlqsvmp/[email protected]>: > I use mod_python for handling authentication and authorization (Directi= ve > PythonAccessHandler and PythonAuthenHandler) static files and PHP > applications. Is it possible to transfer this functionality to mod_wsgi= ? Read: http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms The mod_wsgi module implements the newer Apache concept of authentication providers whereby you only need to authenticate the user and not actually generate the error page, Apache will do the latter for you, or you can use an ErrorDocument directive to redirect to a custom page of your own. For access handler, mod_wsgi provides a simpler mechanism for what is the common idiom that hook is used for. That is indicating whether a remote client should be allowed access. Graham