aboutsummaryrefslogtreecommitdiff
path: root/server.py
blob: 89b86dc4eb6624015d03fbe042afa6d0de2fd586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python3

import http.server

PORT = 8889
server_address = ("", PORT)

server = http.server.HTTPServer
handler = http.server.CGIHTTPRequestHandler
handler.cgi_directories = ["/"]
print("Serveur actif sur le port : ", PORT)

httpd = server(server_address, handler)
httpd.serve_forever()