From 6f69e7c3d06cacc654afa71c721c171421ed005d Mon Sep 17 00:00:00 2001 From: NeodarZ Date: Fri, 23 Sep 2016 16:19:19 +0200 Subject: First commit --- server.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 server.py (limited to 'server.py') diff --git a/server.py b/server.py new file mode 100755 index 0000000..89b86dc --- /dev/null +++ b/server.py @@ -0,0 +1,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() -- cgit v1.2.1