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!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

srv.py 569B

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', 4443), 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()