--- web/standalone_old.py	2007-04-03 01:29:43.000000000 -0700
+++ web/standalone.py	2007-10-20 20:35:23.000000000 -0700
@ -145,8 +144,8 @@
                       help='the host name or IP address to bind to')
     parser.add_option('--protocol', action='callback', type="string",
                       dest='protocol', callback=_validate_callback,
-                      callback_args=(('http', 'scgi', 'ajp'),),
-                      help='http|scgi|ajp')
+                      callback_args=(('http', 'scgi', 'ajp', 'fcgi'),),
+                      help='http|scgi|ajp|fcgi')
     parser.add_option('-e', '--env-parent-dir', action='store',
                       dest='env_parent_dir', metavar='PARENTDIR',
                       help='parent directory of the project environments')
@@ -190,6 +189,7 @@
             'http': 80,
             'scgi': 4000,
             'ajp': 8009,
+            'fcgi': 8000,
         }[options.protocol]
     server_address = (options.hostname, options.port)
 
@@ -226,15 +226,8 @@
         def serve():
             httpd = TracHTTPServer(server_address, wsgi_app,
                                    options.env_parent_dir, args)
             httpd.serve_forever()
-    elif options.protocol in ('scgi', 'ajp'):
+    elif options.protocol in ('scgi', 'ajp', 'fcgi'):
         def serve():
             server_cls = __import__('flup.server.%s' % options.protocol,
                                     None, None, ['']).WSGIServer

