You could use this piece of Python code to redirect "http:// SERVER" to
"http:// SERVER:9000"


Code:
--------------------
    
  #!/usr/bin/env python3
  
  import sys
  from http.server import HTTPServer, BaseHTTPRequestHandler
  
  class Redirect(BaseHTTPRequestHandler):
  def do_GET(self):
  self.send_response(302)
  self.send_header('Location', 'http://%s:9000%s' % 
(self.headers['Host'].split(':')[0].strip(), self.path))
  self.end_headers()
  
  HTTPServer(("", 80), Redirect).serve_forever()
  
--------------------



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=113093

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to