<div dir="ltr">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. <br>
<br>import cherrypy<br>from cherrypy import wsgiserver<br>from webapp import app, api<br><br>vhost = cherrypy._cpwsgi.VirtualHost(app.wsgi_app, domains={'<a href="http://api.sniplogic.com">api.sniplogic.com</a>': api.wsgi_app})<br>
<br>cherrypy.tree.graft(vhost)<br>application = cherrypy.tree<br><br>server = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8080), application)<br><br>if __name__ == '__main__':<br>    try:<br>        server.start()<br>
    except KeyboardInterrupt:<br>        server.stop()<br clear="all"><div><div><div><div><br>-- <br>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.
</div></div></div></div></div>