I built a WSGI app and created a standalone wrapper using CherryPyWSGIServer. I see that CherryPyWSGIServer supports HTTPS but I am not sure how to support both HTTP and HTTPS together as it looks like the first server.start()
blocks. How would I create two servers, one HTTP and one HTTPS, and start them both?
Here is what I have now:
server = CherryPyWSGIServer( (http_ip, http_port), web_app )
try:
server.start()
except KeyboardInterrupt:
server.stop()