@@ -0,0 +1,533 @@
+import SimpleHTTPServer;%0Aimport SocketServer;%0A%0Aclass CustomHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):%0A    def do_GET(self):%0A        host = self.headers%5B'Host'%5D%0A        if %22:%22 in host:%0A            host = host.split(':')%5B0%5D%0A        if %22.%22 in host:%0A            host = host.split('.')%5B0%5D%0A        self.path = 'apps/' + host + self.path%0A        print(self.path)%0A        SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)%0A%0Ahttpd = SocketServer.TCPServer((%22%22, 8000), CustomHTTPRequestHandler)%0A%0Ahttpd.serve_forever()%0A%0A

add simple python web server