Changeset 9:8d4976c453c6
- Timestamp:
- 04/16/05 02:53:04 (3 years ago)
- Files:
-
- flup/server/scgi.py (modified) (3 diffs)
- flup/server/scgi_fork.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
flup/server/scgi.py
r2 r9 26 26 27 27 """ 28 scgi - an SCGI/WSGI gateway. (I might have to rename this module.)28 scgi - an SCGI/WSGI gateway. 29 29 30 30 For more information about SCGI and mod_scgi for Apache1/Apache2, see … … 88 88 mind running in multiple processes, go use SWAP. ;) 89 89 """ 90 def __init__(self, application, environ=None,90 def __init__(self, application, scriptName='', environ=None, 91 91 multithreaded=True, 92 92 bindAddress=('localhost', 4000), allowedServers=None, 93 93 loggingLevel=logging.INFO, **kw): 94 94 """ 95 scriptName is the initial portion of the URL path that "belongs" 96 to your application. It is used to determine PATH_INFO (which doesn't 97 seem to be passed in). An empty scriptName means your application 98 is mounted at the root of your virtual host. 99 95 100 environ, which must be a dictionary, can contain any additional 96 101 environment variables you want to pass to your application. … … 108 113 """ 109 114 BaseSCGIServer.__init__(self, application, 115 scriptName=scriptName, 110 116 environ=environ, 111 117 multithreaded=multithreaded, flup/server/scgi_fork.py
r2 r9 26 26 27 27 """ 28 scgi - an SCGI/WSGI gateway. (I might have to rename this module.)28 scgi - an SCGI/WSGI gateway. 29 29 30 30 For more information about SCGI and mod_scgi for Apache1/Apache2, see … … 88 88 mind running in multiple processes, go use SWAP. ;) 89 89 """ 90 def __init__(self, application, environ=None,90 def __init__(self, application, scriptName='', environ=None, 91 91 bindAddress=('localhost', 4000), allowedServers=None, 92 92 loggingLevel=logging.INFO, **kw): 93 93 """ 94 scriptName is the initial portion of the URL path that "belongs" 95 to your application. It is used to determine PATH_INFO (which doesn't 96 seem to be passed in). An empty scriptName means your application 97 is mounted at the root of your virtual host. 98 94 99 environ, which must be a dictionary, can contain any additional 95 100 environment variables you want to pass to your application. … … 107 112 """ 108 113 BaseSCGIServer.__init__(self, application, 114 scriptName=scriptName, 109 115 environ=environ, 110 116 multithreaded=False,