运行多个扭曲的服务器? [英] Run multiple twisted servers?

查看:67
本文介绍了运行多个扭曲的服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在同一个端口上同时运行多个扭曲的服务器?这样他们就可以监听不同的目录(例如:example.com/twisted1 是一个twisted 脚本,example.com/twisted2 是另一个脚本)

Is there some way to run multiple twisted servers simultaneously on the same port? So that they would be listening on different directories (for example: example.com/twisted1 is one twisted script, and example.com/twisted2 is another script)

推荐答案

您可以使用 Web 框架路由您的脚本,例如:Django、Flask、Web2Py...或者,如果您愿意,您可以手动为路由创建一个路由脚本

You can router your scripts with an web framework, like: Django, Flask, Web2Py... Or, if you prefer you can create an router script for route manually

这篇关于运行多个扭曲的服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆