thank you very much
i remove the try_files line
and it work fine
thanks again

James Schneider於 2016年5月14日星期六 UTC+8下午1時24分06秒寫道:
>
>  
>> location / {
>> uwsgi_pass unix://tmp/school.sock;
>> include uwsgi_params;
>> try_files $uri $uri/ =404;
>> }
>>
>
> I have a feeling this section is what is causing you trouble. Do you have 
> a separate "upstream <name> {}" section that you can use with uwsgi_pass?
>
> Have you tried removing the try_files line? I haven't played with it 
> personally, but it doesn't look correct at first glance according to the 
> docs, I don't believe your request is ever being sent to uWSGI.
>
> http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files 
>
> Have you taken a look at the uWSGI Django documentation page? It has a 
> working (I'd assume) config: 
>
> https://uwsgi.readthedocs.io/en/latest/tutorials/Django_and_nginx.html
>
> Use that config as a reference to assess your own.
>
> -James
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3362cf78-4fd1-4dd9-96bb-47448c28883f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to