IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415
  1. import BaseHTTPServer, SimpleHTTPServer
  2. import ssl
  3. class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
  4. def do_GET(self):
  5. print(self.path)
  6. if '.' not in self.path:
  7. self.path = '/'
  8. SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)
  9. # RequestHandler, self).do_GET()
  10. httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 4445), RequestHandler)
  11. httpd.socket = ssl.wrap_socket (httpd.socket, certfile='/pstore/home/adaszews/workspace/arvados-workbench-advanced/backend/server.pem', server_side=True)
  12. httpd.serve_forever()