How to configure multiple web site with django and tornado?
On my VDS I use nginx, django and tornado. I had just one project, Now i gonna deploy another one project with a different domain name. I want to use different databases and folders. I know how to configure nginx for serving static resourses , but what ab开发者_开发技巧out tornado? Should i run separeted instance of tornado for each project or is there any better solution?
Yes, generally you have to use separate Tornado instances (processes with separate port) for different projects and use different upstream servers for proxy_pass directives of each domain in nginx config.
精彩评论