avatar
avatar

Reputation: 12495

FastCGI sent in stderr: "WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!"

I'm using NGINX + FASTCGI + DJANGO and in my NGINX error logs I see this error:

FastCGI sent in stderr: "WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!"

Found this solution to apparently the same problem but I already have those lines on my nginx.conf file and still gives me the above error.

Any ideas? Thank you!

Upvotes: 0

Views: 3408

Answers (1)

AgentOrange
AgentOrange

Reputation: 251

You also need to add the following line to the location block in your nginx configuration

fastcgi_param SERVER_PROTOCOL $server_protocol;

So the four you need are:

fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PROTOCOL $server_protocol;

Upvotes: 1

Related Questions