1.1 --- a/docs/WSGI/NOTES.txt Thu Dec 02 16:39:50 2004 +0000
1.2 +++ b/docs/WSGI/NOTES.txt Thu Dec 02 16:40:09 2004 +0000
1.3 @@ -1,11 +1,19 @@
1.4 -Specifying the appropriate PYTHONPATH, invoke the application program. For
1.5 -example, in the WebStack distribution directory:
1.6 +Currently, the WSGI examples use the WSGI CGI handler code found in PEP 333
1.7 +and placed in the wsgi_cgi module. Deploying in other environments would
1.8 +require slightly different "glue code" to be written.
1.9
1.10 -PYTHONPATH=.:examples/Common python examples/WSGI/SimpleApp.py
1.11 +--------
1.12 +
1.13 +Declare the script in httpd.conf or equivalent Web server configuration file.
1.14 +For example:
1.15 +
1.16 +ScriptAlias /wsgi/simple "/home/paulb/Software/Python/WebStack/examples/WSGI/SimpleHandler.py"
1.17
1.18 The WebStack package must reside on the PYTHONPATH, along with the package
1.19 -containing the application itself.
1.20 +containing the application itself. Therefore, ensure that the handler uses the
1.21 +appropriate entries in sys.path.
1.22
1.23 -In addition, WSGI examples currently require wsgiServer from WSGI Utils to
1.24 -either reside on the PYTHONPATH or to have been installed using the WSGI
1.25 -Utils setup script.
1.26 +Ensure that the handler file for the application has the appropriate
1.27 +permissions:
1.28 +
1.29 +chmod u+x examples/WSGI/SimpleHandler.py