Run multiple twisted servers?

2019-09-08 09:28发布

问题:

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)

回答1:

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