Tornado Documentation
http://www.v2ex.com/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
kenneth
V2EX  ›  Tornado

如何让Tornado网站同时支持http和https两种协议访问?

  •  
  •   kenneth · Dec 14, 2013 · 9274 views
    This topic created in 4575 days ago, the information mentioned may be changed or developed.
    feijilei
        1
    feijilei  
       Dec 14, 2013
    前端走nginx
    b1074549
        2
    b1074549  
       Dec 14, 2013
    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"),
    })
    DonaidTrump
        3
    DonaidTrump  
       Dec 15, 2013
    1楼正解
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3019 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 13:35 · PVG 21:35 · LAX 06:35 · JFK 09:35
    ♥ Do have faith in what you're doing.