Hi Jeff. I am interested in this approach for Virtual hosts. Have you posted the twisted code anywhere so that I may take a look at this. Where will Matt be posting a recipe once this is finished? Many thanks.

Regards,
David


Rubic wrote:
twisted.web2 has support for scgi (by Matt Goodall) and
wsgi (James Knight).  We've gotten the following to work
using scgi with Matt Goodall's assistance:


from cherrypy._cpwsgi import wsgiApp
from paste.util.scgiserver import serve_application
cherrypy.server.start(initOnly=True, serverClass=None)
serve_application(application=wsgiApp, prefix="/", port=4000)


Our apps must be secured with SSL.  Conventionally,
every SSL website must have a unique ip address
and use the assigned TCP port 443 -- i.e. each of
our secure web applications would require a unique
external ip address.

However with Twisted (unlike Apache) it's actually
possible to have named virtual hosting behind an
SSL certificate.  So I now have a twisted server
handling requests to TurboGear/CherryPy applications
running on the same domain:

  https://app1.server.domain.com/
  https://app2.server.domain.com/

Matt will be publishing a recipe soon.  In the
meanwhile I'll be happy to share the twisted
code he wrote for us to support this feature.

Jeff Bauer

Reply via email to