diff options
author | NeodarZ <neodarz@neodarz.ovh> | 2016-09-23 16:19:19 +0200 |
---|---|---|
committer | NeodarZ <neodarz@neodarz.ovh> | 2016-09-23 16:19:19 +0200 |
commit | 6f69e7c3d06cacc654afa71c721c171421ed005d (patch) | |
tree | 5aec735e2fd59b2a758d01525118e31e0f4239eb /server.py | |
download | web_checker-6f69e7c3d06cacc654afa71c721c171421ed005d.tar.xz web_checker-6f69e7c3d06cacc654afa71c721c171421ed005d.zip |
First commit
Diffstat (limited to '')
-rwxr-xr-x | server.py | 14 |
1 files changed, 14 insertions, 0 deletions
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() |