diff options
author | Jon Nelson <jnelson@jamponi.net> | 2009-07-06 11:21:26 -0500 |
---|---|---|
committer | Jon Nelson <jnelson@jamponi.net> | 2009-07-06 11:21:26 -0500 |
commit | d599df6f1dccbcda27218b5ca0ac17064136f26e (patch) | |
tree | 55921ff56762eb195da800dab19645611e1fb51e /flup/server/ajp.py | |
parent | 8e923c27a88fdc6259c648d7d2fbebfd101d4da9 (diff) | |
download | flup-d599df6f1dccbcda27218b5ca0ac17064136f26e.tar.gz |
tweak for docs building with Sphinx
Diffstat (limited to 'flup/server/ajp.py')
-rw-r--r-- | flup/server/ajp.py | 72 |
1 files changed, 39 insertions, 33 deletions
diff --git a/flup/server/ajp.py b/flup/server/ajp.py index e7db7c3..687cfb0 100644 --- a/flup/server/ajp.py +++ b/flup/server/ajp.py @@ -1,39 +1,45 @@ -# Copyright (c) 2005, 2006 Allan Saddi <allan@saddi.com> -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# -# $Id$ - """ +.. highlight:: python + :linenothreshold: 5 + +.. highlight:: bash + :linenothreshold: 5 + ajp - an AJP 1.3/WSGI gateway. +:copyright: Copyright (c) 2005, 2006 Allan Saddi <allan@saddi.com> + All rights reserved. +:license: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS **AS IS** AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + For more information about AJP and AJP connectors for your web server, see -<http://jakarta.apache.org/tomcat/connectors-doc/>. +http://jakarta.apache.org/tomcat/connectors-doc/. For more information about the Web Server Gateway Interface, see -<http://www.python.org/peps/pep-0333.html>. +http://www.python.org/peps/pep-0333.html. -Example usage: +Example usage:: #!/usr/bin/env python import sys @@ -50,7 +56,7 @@ can be used by a wrapper script to determine if the python script should be re-run. When a SIGINT or SIGTERM is received, the script exits with status code 0, possibly indicating a normal exit. -Example wrapper script: +Example wrapper script:: #!/bin/sh STATUS=42 @@ -59,14 +65,14 @@ Example wrapper script: STATUS=$? done -Example workers.properties (for mod_jk): +Example workers.properties (for mod_jk):: worker.list=foo worker.foo.port=8009 worker.foo.host=localhost worker.foo.type=ajp13 -Example httpd.conf (for mod_jk): +Example httpd.conf (for mod_jk):: JkWorkersFile /path/to/workers.properties JkMount /* foo @@ -98,7 +104,7 @@ class WSGIServer(BaseAJPServer, ThreadedServer): implement. :) Of course you will need an AJP1.3 connector for your webserver (e.g. - mod_jk) - see <http://jakarta.apache.org/tomcat/connectors-doc/>. + mod_jk) - see http://jakarta.apache.org/tomcat/connectors-doc/. """ def __init__(self, application, scriptName='', environ=None, multithreaded=True, multiprocess=False, |