502 on Nginx after start CSF
Hi I've installed gunicorn, django and nginx as described in this tutorial Tutorial. I've developed a function in django that add in my database an user and it works perfectly!!
Now I've installed CSF (Config Server Firewall) and if I run it csf -r
, the same function for adding a user doesn't work.
I see, in the error log of Nginx, this raw:
2014/06/25 10:11:04 [error] 5396#0: *19 upstream prematurely closed connection while reading response header from upstream, client: 79.35.50.121, server: localjob.it, request: POST /django/registerClient HTTP/1.1, upstream: http://188.226.199.19:8001/django/registerClient, host: 188.226.199.19
I underline that the function work without star csf.
Anyone can explain me why I get this problem?