Le 31 mars 2011 à 07:57, 付毅 a écrit : > hi Graham: > i'm using the nginx+fcgi . And my startup command is below > > python manage.py runfcgi host=127.0.0.1 port=3033 method=prefork > pidfile=/var/run/fcgi.pid minspare=5 maxspare=30 maxchildren=60 > maxrequests=200 > > p.s I've invite you on gtalk, hope your response.
The thing Graham was pointing out is that you should rather have nginx as a frontal for handling connections and acting as a proxy to django applications. That way Python application are left outside nginx. Nginx deals with maintaining connections with the client and Python will only focus on processing without being distracted with keeping connections on hold. This architecture (Nginx + gunicorn) is widely documented, you'll find tons of posts about it. Regards, Xavier. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.