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