Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 99fdb63

Browse files
author
tony
committed
fix cert path
1 parent e20a949 commit 99fdb63

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.DS_Store
2+
*.out
3+
*.pem

‎HTTPS_Server.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def do_POST(self):
2323
Handler = ServerHandler
2424

2525
httpd = BaseHTTPServer.HTTPServer(("", PORT),Handler)
26-
httpd.socket = ssl.wrap_socket (httpd.socket, certfile='./cert.pem', server_side=True)
26+
httpd.socket = ssl.wrap_socket (httpd.socket, certfile='../cert.pem', server_side=True)
2727
ip = socket.gethostbyname(socket.gethostname())
2828
print "Serving at: https://%(interface)s:%(port)s" % dict(interface=ip or "localhost", port=PORT)
29-
httpd.serve_forever()
29+
httpd.serve_forever()

‎startHttpServer.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pushd ./resource
2-
nohup python ../HTTP_Server.py 8001 &> ../nohup.out &
2+
nohup python ../HTTP_Server.py 8002 &> ../nohup.out &

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /