1
feijilei 2013-12-14 21:50:51 +08:00
前端走nginx
|
2
b1074549 2013-12-14 23:29:47 +08:00
To make this server serve SSL traffic, send the ssl_options dictionary argument with the arguments required for the ssl.wrap_socket method, including certfile and keyfile. (In Python 3.2+ you can pass an ssl.SSLContext object instead of a dict):
HTTPServer(applicaton, ssl_options={ "certfile": os.path.join(data_dir, "mydomain.crt"), "keyfile": os.path.join(data_dir, "mydomain.key"), }) |
3
tulongtou 2013-12-15 16:24:04 +08:00
1楼正解
|