import BaseHTTPServer, SimpleHTTPServer import ssl class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): print(self.path) if '.' not in self.path: self.path = '/' SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self) # RequestHandler, self).do_GET() httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 4443), RequestHandler) httpd.socket = ssl.wrap_socket (httpd.socket, certfile='/pstore/home/adaszews/workspace/arvados-workbench-advanced/backend/server.pem', server_side=True) httpd.serve_forever()