Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (20 sloc) 0.722 kB
14c5877 Add french translation
nux authored
1 ---
2 layout: default
3 title: Configurer le support SSL dans le serveur intégré
4 ---
5
6 # Configurer le support SSL dans le serveur intégré
7
8 Autre langages: [english](/../ssl) | ...
9
10 ## Probleme
11
12 Comment configurer le support SSL dans le serveur intégré de web.py, cherrypy. [Note traducteur: A préciser]
13
14 ## Solution
15
16 import web
17
18 from web.wsgiserver import CherryPyWSGIServer
19
20 CherryPyWSGIServer.ssl_certificate = "path/to/ssl_certificate"
21 CherryPyWSGIServer.ssl_private_key = "path/to/ssl_private_key"
22
23 urls = ("/.*", "hello")
24 app = web.application(urls, globals())
25
26 class hello:
27 def GET(self):
28 return 'Hello, world!'
29
30 if __name__ == "__main__":
31 app.run()
Something went wrong with that request. Please try again.