Setting up Tornado with Nginx on Ubuntu 10.04 for production use

Posted by DjangoRocks on Server Fault See other posts from Server Fault or by DjangoRocks
Published on 2011-02-06T14:33:42Z Indexed on 2011/02/06 15:27 UTC
Read the original article Hit count: 292

Filed under:
|
|

Hi all, I understand that there's an nginx configuration file at http://www.friendfeed.com But i don't really know how to set up Tornada for production use on Ubuntu 10.04 with Nginx.

Here's my situation and assumptions: 1) Assuming my Tornado project is set up as such:

project/
    src/
       static/
       templates/
           project.py

And I have installed Tornado by downloading the repositary from Github and than sudo python setup.py install

2) I've installed Nginx and started it based on the instructions here : http://library.linode.com/web-servers/nginx/installation/ubuntu-10.04-lucid

My questions are: Where does my nginx configuration file go ? Within the src/ folder? After configuring Nginx, how do I start my Tornado project?

© Server Fault or respective owner

Related posts about nginx

Related posts about ubuntu-10.04