On Mon, Jun 1, 2015 at 3:01 PM, Anandhakumar Radhakrishnan
<[email protected]> wrote:
> Am using Django 1.7, nginx

You're only using nginx to proxy to a backend webserver and serve
static files. What is the backend webserver that is hosting django?

> ...
>
> In the sites-enabled/mysite.com
>
> which has
>
>     upstream test {
>             server 127.0.0.1:8000;
>             keepalive 500;
>     }
>
>    ...
>         location / {
>             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>             proxy_set_header Host $http_host;
>             proxy_redirect off;
>             if (!-f $request_filename) {
>                      proxy_pass http://test;
>                      break;
>             }

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1%2BtczTdnGTEU53-PN%3DniDFcSb670kNLUvRHty5EbxCM_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to