Skip to content

Serve multiple Applications from a single HTTPServer #2830

Open
@mrocklin

Description

@mrocklin

I would like to serve a variety of applications from a single HTTPServer.

Normally, I would just take the various handler dictionaries and merge them somehow. However, one of my applications is a Bokeh server application, which has its own custom subclass of tornado.web.Application, and I'd rather not try to unpack the logic that that custom subclass does.

In my ideal world I would either ...

  1. List all of the applications, and hope that their routes do not intersect

    server = web.HTTPServer([app1, app2])
  2. Key each application with a prefix

    server = web.HTTPServer({"/app1": app1, "/app2": app2})

Is there some way to do something similar today?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions