summaryrefslogtreecommitdiff
path: root/paste/servers/scgi_server
diff options
context:
space:
mode:
Diffstat (limited to 'paste/servers/scgi_server')
-rw-r--r--paste/servers/scgi_server/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/paste/servers/scgi_server/__init__.py b/paste/servers/scgi_server/__init__.py
index a2a2f0d..1ca2c11 100644
--- a/paste/servers/scgi_server/__init__.py
+++ b/paste/servers/scgi_server/__init__.py
@@ -3,11 +3,14 @@ thirdparty.add_package('scgi')
from scgiserver import serve_application
def serve(conf, app):
- prefix = conf.get('scgi_prefix', '/')
+ prefix = conf.get('root_url', '')
+ while prefix.endswith('/'):
+ prefix = prefix[:-1]
serve_application(app, prefix, port=int(conf.get('port', 4000)))
options = [
('port', 'Port to serve on (default 4000).'),
+ ('root_url', 'The URL level to expect for incoming connections; if not set and this is not bound to /, then SCRIPT_NAME and PATH_INFO may be incorrect.'),
]
description = """\