开发者

How to configure multiple web site with django and tornado?

开发者 https://www.devze.com 2022-12-26 05:51 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消