Nginx - How to configure the virtual.conf to serve a Django application

2011-11-29 Thread Andre Lopes
I'm trying to serve a Django application to production. I have installed Gunicorn and now I need to setup a Nginx Virtual Host. I'm kind of lost on how to configure the "virtual.conf" from Nginx. I just want to use Nginx as proxy, I don't want to configure deplyment scripts for now. I have this la

Re: Nginx - How to configure the virtual.conf to serve a Django application

2011-11-29 Thread DrBloodmoney
On Tue, Nov 29, 2011 at 3:05 PM, Andre Lopes wrote: > I'm trying to serve a Django application to production. I have > installed Gunicorn and now I need to setup a Nginx Virtual Host. I'm > kind of lost on how to configure the "virtual.conf" from Nginx. I just > want to use Nginx as proxy, I don't

Re: Nginx - How to configure the virtual.conf to serve a Django application

2011-11-30 Thread Reinout van Rees
On 29-11-11 21:05, Andre Lopes wrote: To put things working I should replace: [code] root /path/to/test/hello; [/code] For the path where I have my Django Project? You won't even use that root. That's for serving regular static files and that's only needed for the /static_media and /med