[CentralOH] Critique

John Santiago jdsantiagojr at gmail.com
Wed Mar 13 00:43:17 CET 2013

I was hoping you guys could take a look at my code below. I am preparing to
deploy an application I was working on last month, mounting multiple
applications, routing to different domains. I had set it up in Apache but
wanted to try getting it to work using Cherrypy VirtualHost. Below is my
code. It's working but wanted to see what you guys thought.

import cherrypy
from cherrypy import wsgiserver
from webapp import app, api

vhost = cherrypy._cpwsgi.VirtualHost(app.wsgi_app, domains={'
api.sniplogic.com': api.wsgi_app})

application = cherrypy.tree

server = wsgiserver.CherryPyWSGIServer(('', 8080), application)

if __name__ == '__main__':
    except KeyboardInterrupt:

This electronic message is intended to be for the use only of the named
recipient, and may contain information that is confidential or privileged.
If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or use of the contents of this message is
strictly prohibited.  If you have received this message in error or are not
the named recipient, please notify us immediately by contacting the sender
at the electronic mail address noted above, and delete and destroy all
copies of this message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20130312/c8332917/attachment.html>

More information about the CentralOH mailing list