def start(env, project):
    global wsgi_httpd

    if USE_PASTE_HTTPD:
        import paste.httpserver
        paste_log = logging.getLogger('paste.httpserver.ThreadPool')
        paste_log.setLevel(logging.WARNING)
        wsgi_httpd = paste.httpserver.serve(
            WSGIProxy(env, project), '0.0.0.0', env.c.wsgi_proxy_port, start_loop=False)
    else:
        wsgi_httpd = simple_server.make_server(
            '', env.c.wsgi_proxy_port, WSGIProxy(env))
    log.info('WSGI proxy serving on http://localhost:%s' %
             env.c.wsgi_proxy_port)

    threading.Thread(target=wsgi_httpd.serve_forever).start()