aboutsummaryrefslogtreecommitdiffstats
path: root/junos-bootstrap/httpd/server_http.py
diff options
context:
space:
mode:
authorJonas Lindstad <jonaslindstad@gmail.com>2015-02-13 01:17:33 +0100
committerJonas Lindstad <jonaslindstad@gmail.com>2015-02-13 01:17:33 +0100
commitda36bc985c3e799dae68cdede01f9f985f7444c8 (patch)
treee064880069e4112b8f31aad1017992eed80c7e6b /junos-bootstrap/httpd/server_http.py
parent747766c4e125e0107aac8b075a71e361f48a2130 (diff)
Minor updates, documentation and fixes
Diffstat (limited to 'junos-bootstrap/httpd/server_http.py')
-rw-r--r--junos-bootstrap/httpd/server_http.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/junos-bootstrap/httpd/server_http.py b/junos-bootstrap/httpd/server_http.py
index a7c63d1..44f0237 100644
--- a/junos-bootstrap/httpd/server_http.py
+++ b/junos-bootstrap/httpd/server_http.py
@@ -22,8 +22,9 @@ def main():
),
http = dict(
# host = 'localhost',
- host = '10.0.30.131',
- port = 8080
+ # host = '10.0.30.131',
+ host = '10.0.100.2',
+ port = 80
)
)
@@ -121,7 +122,7 @@ def main():
else:
print('[%s] --> File request rejected due to nonexisting file' % self.client_address[0])
else:
- print('[%s] --> rejected due to bad path' % self.client_address[0])
+ print('[%s] --> rejected due to bad URI' % self.client_address[0])
# silence stderr from BaseHTTPRequestHandler
# source: http://stackoverflow.com/questions/3389305/how-to-silent-quiet-httpserver-and-basichttprequesthandlers-stderr-output
def log_message(self, format, *args):