Comment

Ray

I'd been using Apache in a similar way for quite a while now but switched to Nginx a few month ago, much snappier. Perfect for the job. Just a suggestion for the conf: The encouraged convention instead of ``if`` blocks is using try_files and named locations, something like:

location / {
try_files $uri $uri/ @django;
}

location @django {
proxy_pass http://127.0.0.1:8000;
# etc.
}

Replies

Peter

Excellent tip! Thanks. I guess I haven't updated my nginx-fu.