diff --git a/PythonHTTP.py b/PythonHTTP.py new file mode 100644 index 0000000..1bd3091 --- /dev/null +++ b/PythonHTTP.py @@ -0,0 +1,14 @@ + +import BaseHTTPServer +import CGIHTTPServer +import cgitb; cgitb.enable() + +server = BaseHTTPServer.HTTPServer +handler = CGIHTTPServer.CGIHTTPRequestHandler +server_address = ('',8000) +handler.cgi_directories = ['/info-mon'] +#handler.cgi_directories = ["/cgi-bin/"] + +httpd = server(server_address, handler) +httpd.serve_forever() +