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文字以内のものにしてください。

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