SVN: r25814 - trunk/quixote
David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 21 Dec 2004 11:41:04 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: dbinger Date: 2004-12-21 09:12:46 -0500 (Tue, 21 Dec 2004) New Revision: 25814 Modified: trunk/quixote/mod_python_handler.py Log: Move the old notes about mod_python into the mod_python module. Modified: trunk/quixote/mod_python_handler.py =================================================================== --- trunk/quixote/mod_python_handler.py 2004-12-21 14:11:07 UTC (rev 25813) +++ trunk/quixote/mod_python_handler.py 2004-12-21 14:12:46 UTC (rev 25814) @@ -2,8 +2,32 @@ $HeadURL$ $Id$ -mod_python handler for Quixote. See the "mod_python configuration" -section of doc/web-server.txt for details. +mod_python handler for Quixote *1*. +This still needs to be converted for Quixote 2. + +mod_python configuration +------------------------ + +mod_python is an Apache module for embedding a Python interpreter into +the Apache server. To use mod_python as the interface layer between +Apache and Quixote, add something like this to your httpd.conf:: + + LoadModule python_module /usr/lib/apache/1.3/mod_python.so + <LocationMatch "^/qdemo(/|$)"> + SetHandler python-program + PythonHandler quixote.mod_python_handler + PythonOption quixote-root-namespace quixote.demo + PythonInterpreter quixote.demo + PythonDebug On + </LocationMatch> + +This will attach URLs starting with ``/qdemo`` to the Quixote demo. +When you use mod_python, there's no need for rewrite rules (because of +the pattern in the ``LocationMatch`` directive), and no need for a +driver script. + +mod_python support was contributed to Quixote by Erno Kuusela +<[email protected]>. """ import sys