S
S
stayHARD2015-08-06 19:23:49
Django
stayHARD, 2015-08-06 19:23:49

What's wrong with nginx + uwsgi + django?

Good evening.
For some reason, nginx stubbornly gives 502 despite all my attempts to fix it.
My configs:
pastebin.com/dU67MPUq
My nginx logs:
pastebin.com/r2taMC3v

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-08-06
@stayHARD

[uwsgi]
chdir=ПУТЬ_К_РУТУ_ПРОЕКТА

virtualenv=ПУТЬ_К_ВИРТЕНВ_ДИРЕКТОРИИ

module=НАЗВАНИЕ_ПРОЕКТА.wsgi:application
master=True

processes=КОЛЛИЧЕСТВО_ТРЕДОВ

vacuum=True

daemonize=ПУТЬ_К_ЛОГУ

socket=ПУТЬ_К_СОКЕТУ
chmod-socket = 666

add at least module and virtualenv to yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question